Skip to content

Commit

Permalink
fix: remove image component when no image prop
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Oct 3, 2024
1 parent 2a080f2 commit 0e4a892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EmptyState/EmptyState.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const hasAction = computed(() => {
<empty-state-label :label="label">
<slot name="label" />
</empty-state-label>
<empty-state-image :image="image" :image-dark="imageDark" :max-width="imageMaxWidth" :alt="imageAlt">
<empty-state-image v-if="image" :image="image" :image-dark="imageDark" :max-width="imageMaxWidth" :alt="imageAlt">
<template #source>
<slot name="image-source" />
</template>
Expand Down

0 comments on commit 0e4a892

Please sign in to comment.