We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c34d9c1 commit 09a4a22Copy full SHA for 09a4a22
src/ui/SunburstChart/SunburstChart.jsx
@@ -44,7 +44,8 @@ function SunburstChart({
44
// if the node has children, process them
45
if (Array.isArray(node.children)) {
46
currentNode.children = node.children.map((child) => {
47
- const newChild = structuredClone(child)
+ // sad ... some browsers still lack support for structuredClone
48
+ const newChild = JSON.parse(JSON.stringify(child))
49
Object.assign(newChild, { value: selectorHandler.current(child) })
50
51
nodeMap.set(child, newChild)
0 commit comments