Skip to content

Commit d9be328

Browse files
committed
Make the if case shorter
1 parent d1b08eb commit d9be328

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 != undefined && value != null ? value : '';
237+
return value ?? '';
238238
},
239239
plugins: {
240240
// Sorting enabled by default

0 commit comments

Comments
 (0)