diff --git a/arches_references/src/arches-references/components/tree/ListTree.vue b/arches_references/src/arches-references/components/tree/ListTree.vue index e79df15..8066cff 100644 --- a/arches_references/src/arches-references/components/tree/ListTree.vue +++ b/arches_references/src/arches-references/components/tree/ListTree.vue @@ -62,7 +62,7 @@ const updateSelectedAndExpanded = (node: TreeNode) => { setDisplayedRow(node.data); expandedKeys.value = { ...expandedKeys.value, - [node.key as string]: true, + [node.key]: true, }; }; @@ -76,10 +76,10 @@ const expandAll = () => { const expandNode = (node: TreeNode, newExpandedKeys: TreeExpandedKeys) => { if (node.children && node.children.length) { - newExpandedKeys[node.key as string] = true; + newExpandedKeys[node.key] = true; for (const child of node.children) { - expandNode(child as TreeNode, newExpandedKeys); + expandNode(child, newExpandedKeys); } } }; diff --git a/arches_references/src/arches-references/components/tree/ListTreeControls.vue b/arches_references/src/arches-references/components/tree/ListTreeControls.vue index 4c26f8f..d3ab829 100644 --- a/arches_references/src/arches-references/components/tree/ListTreeControls.vue +++ b/arches_references/src/arches-references/components/tree/ListTreeControls.vue @@ -36,10 +36,10 @@ const collapseAll = () => { const expandNode = (node: TreeNode) => { if (node.children && node.children.length) { - expandedKeys.value[node.key as string] = true; + expandedKeys.value[node.key] = true; for (const child of node.children) { - expandNode(child as TreeNode); + expandNode(child); } } };