mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
remove redundant map
This commit is contained in:
parent
1dac233219
commit
28f04fd881
1 changed files with 1 additions and 3 deletions
|
@ -145,9 +145,7 @@
|
|||
const dispatch = createEventDispatcher();
|
||||
const batchSelectedIds = writable(false);
|
||||
const tableRows = writable(rows);
|
||||
$: thKeys = headers
|
||||
.map(({ key }) => ({ key, id: key }))
|
||||
.reduce((a, c) => ({ ...a, [c.key]: c.id }), {});
|
||||
$: thKeys = headers.reduce((a, c) => ({ ...a, [c.key]: c.key }), {});
|
||||
const resolvePath = (object, path) => {
|
||||
if (path in object) return object[path];
|
||||
return path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue