Skip to content

Commit

Permalink
Merge pull request #2546 from PrefectHQ/fix/multiple-create-buttons-o…
Browse files Browse the repository at this point in the history
…n-block-type-list-cards

Fix potential for multiple create buttons on block type list.
  • Loading branch information
collincchoy committed Jun 24, 2024
2 parents e2efaa9 + f593e30 commit 0f36c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/BlockTypeList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<p-button v-if="useEmit" size="sm" variant="default" @click="emit('add', blockType)">
Create
</p-button>
<p-button size="sm" variant="default" :to="routes.blockCreate(blockType.slug)">
<p-button v-else size="sm" variant="default" :to="routes.blockCreate(blockType.slug)">
Create
</p-button>
</template>
Expand Down

0 comments on commit 0f36c6c

Please sign in to comment.