mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(DataTable): undefined cell value fallback
This commit is contained in:
parent
3968287084
commit
1e77748d77
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@
|
|||
.split(/[\.\[\]\'\"]/)
|
||||
.filter((p) => p)
|
||||
.reduce(
|
||||
(o, p) => (o && typeof o === "object" && o[p] ? o[p] : defaultValue),
|
||||
(o, p) => ((o && typeof o === "object" && typeof o[p] === 'undefined') ? o[p] : defaultValue),
|
||||
object
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue