Skip to content

Commit

Permalink
fix(CommandPalette): hide empty-state when null
Browse files Browse the repository at this point in the history
Resolves #1787
  • Loading branch information
benjamincanac committed May 14, 2024
1 parent 3c1602a commit 249bbd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtime/components/navigation/CommandPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,10 @@ export default defineComponent({
)
})
const emptyState = computed(() => ({ ...ui.value.default.emptyState, ...props.emptyState }))
const emptyState = computed(() => {
if (props.emptyState === null) return null
return { ...ui.value.default.emptyState, ...props.emptyState }
})
// Methods
Expand Down

0 comments on commit 249bbd4

Please sign in to comment.