diff --git a/react-components/src/components/CadModelContainer/useApplyCadModelStyling.tsx b/react-components/src/components/CadModelContainer/useApplyCadModelStyling.tsx index 0392ea81226..752ceefbf0f 100644 --- a/react-components/src/components/CadModelContainer/useApplyCadModelStyling.tsx +++ b/react-components/src/components/CadModelContainer/useApplyCadModelStyling.tsx @@ -132,7 +132,7 @@ function isEqualTreeIndex( collectionB: TreeIndexNodeCollection ): boolean { const isEqualContent = - collectionA.getIndexSet().differenceWith(collectionB.getIndexSet()).count === 0; + collectionA.getIndexSet().clone().differenceWith(collectionB.getIndexSet()).count === 0; return isEqualContent; }