fix typescript compile error
This commit is contained in:
parent
866d02c4cb
commit
055e52793b
|
@ -132,7 +132,7 @@ export function build(root: Tree.Node): TreeWrapper {
|
||||||
const newPath = path + node.id,
|
const newPath = path + node.id,
|
||||||
existing = nodeAtPathOrNull(newPath);
|
existing = nodeAtPathOrNull(newPath);
|
||||||
if (existing) {
|
if (existing) {
|
||||||
(['dests', 'drops', 'clock'] as [keyof Tree.Node]).forEach(key => {
|
(['dests', 'drops', 'clock'] as Array<keyof Tree.Node>).forEach(key => {
|
||||||
if (defined(node[key]) && !defined(existing[key])) existing[key] = node[key];
|
if (defined(node[key]) && !defined(existing[key])) existing[key] = node[key];
|
||||||
});
|
});
|
||||||
return newPath;
|
return newPath;
|
||||||
|
|
Loading…
Reference in a new issue