Skip to content

Commit d1b08eb

Browse files
committed
Fix if statement so that zero values do not return false
1 parent 84e1fa9 commit d1b08eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/Table/TableContent.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
accessor: accessor,
235235
cell: ({ value }) => {
236236
// If null or undefined, return an empty string
237-
return value ? value : '';
237+
return value != undefined && value != null ? value : '';
238238
},
239239
plugins: {
240240
// Sorting enabled by default

0 commit comments

Comments
 (0)