Skip to content

Commit

Permalink
feat(interaction): add drilldown in treemap
Browse files Browse the repository at this point in the history
  • Loading branch information
wb-xcf804241 committed Jan 4, 2024
1 parent 4688d11 commit 6bc108b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/treeDataTransform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function addObjectDataPath(root: Node, path = [root.data.name]) {

function addArrayDataPath(root: Node) {
const name = get(root, ['data', 'name']);
if (name) {
if (name.replaceAll) {
root.path = name.replaceAll('.', '/').split('/');
}

Expand Down

0 comments on commit 6bc108b

Please sign in to comment.