From b3acc9d9fb35b9af9e6d30cfd1dd892cc033b6be Mon Sep 17 00:00:00 2001 From: franmagn Date: Tue, 14 Oct 2025 19:32:26 +0200 Subject: [PATCH] fix(#4): :bug: there was a conflict with "Data for point X" table fixed behaviour conflict triggered by "Add a new location" button --- src/AnnotationControl/annotationPanel.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/AnnotationControl/annotationPanel.js b/src/AnnotationControl/annotationPanel.js index d1e86fb..89a8792 100644 --- a/src/AnnotationControl/annotationPanel.js +++ b/src/AnnotationControl/annotationPanel.js @@ -465,17 +465,6 @@ export function initAnnotationsPanel(viewer) { } catch (e) { console.warn('Could not attach camera info to annotation', e) } - let annotationsRoot = tree.get_json('annotations') - let jsonNode = - annotationsRoot && - annotationsRoot.children && - annotationsRoot.children.find( - (child) => child.data.uuid === annotation.uuid - ) - if (jsonNode) { - $.jstree.reference(jsonNode.id).deselect_all() - $.jstree.reference(jsonNode.id).select_node(jsonNode.id) - } updateAnnotationsList() }, 200) // A short delay for Potree/jsTree to update }