mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
fix(data-table): do not overwrite row.cells
property (#1336)
* refactor(data-table): remove unneeded third argument from resolvePath call * fix(data-table): do not overwrite `cells` property (#667) * perf(data-table): early return if path in object when resolving path
This commit is contained in:
parent
260bf4e040
commit
d2cdb8eb0f
2 changed files with 22 additions and 16 deletions
|
@ -50,7 +50,7 @@
|
|||
if (shouldFilterRows === true) {
|
||||
rows = rows.filter((row) => {
|
||||
return Object.entries(row)
|
||||
.filter(([key]) => !["cells", "id"].includes(key))
|
||||
.filter(([key]) => key !== "id")
|
||||
.some(([key, _value]) => {
|
||||
if (typeof _value === "string" || typeof _value === "number") {
|
||||
return (_value + "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue