From 3b749bc153184d042e562c995114e767d3f9fbe4 Mon Sep 17 00:00:00 2001 From: Travis Date: Sat, 13 Jan 2024 17:37:34 -0600 Subject: [PATCH] destroy annotaions first --- src/stores/AppStore.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 6928d5510..5cbbfd516 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js @@ -875,13 +875,15 @@ export default types const children = []; walk(self, (node) => { - if (!isRoot(node) && getParent(node) === self) children.push(node); + if (!isRoot(node) && getParent(node) === self) { + if (node.annotations) children.unshift(...node.annotations); + else children.push(node); + } }); let node; while ((node = children?.shift())) { - console.log(node.annotations?.[0].trackedState.areas); try { destroy(node); } catch (e) {