From eb4166629b3edc7e7837d238cd6884953fe63e98 Mon Sep 17 00:00:00 2001 From: Savelii Novikov <45129444+Savokr@users.noreply.github.com> Date: Mon, 21 Aug 2023 17:31:06 +0200 Subject: [PATCH] Fixed incorrect check for equality (#3605) Bug fixed --- .../components/CadModelContainer/useApplyCadModelStyling.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }