mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
render null/undefined as empty strings (DataTable)
This commit is contained in:
parent
16c377945c
commit
a50fc4910d
1 changed files with 2 additions and 2 deletions
|
@ -396,7 +396,7 @@
|
|||
{#if headers[j].empty}
|
||||
<td class:bx--table-column-menu="{headers[j].columnMenu}">
|
||||
<slot name="cell" row="{row}" cell="{cell}">
|
||||
{cell.display ? cell.display(cell.value) : cell.value}
|
||||
{cell.display ? cell.display(cell.value) : cell.value ?? ""}
|
||||
</slot>
|
||||
</td>
|
||||
{:else}
|
||||
|
@ -407,7 +407,7 @@
|
|||
}}"
|
||||
>
|
||||
<slot name="cell" row="{row}" cell="{cell}">
|
||||
{cell.display ? cell.display(cell.value) : cell.value}
|
||||
{cell.display ? cell.display(cell.value) : cell.value ?? ""}
|
||||
</slot>
|
||||
</TableCell>
|
||||
{/if}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue