Skip to content

Commit

Permalink
fix(Table): empty state is displayed if null (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduayme authored and benjamincanac committed Sep 7, 2023
1 parent cb5484a commit 44ba758
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtime/components/data/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ export default defineComponent({
const indeterminate = computed(() => selected.value && selected.value.length > 0 && selected.value.length < props.rows.length)
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 }
})
function compare (a: any, z: any) {
if (typeof props.by === 'string') {
Expand Down

0 comments on commit 44ba758

Please sign in to comment.