Skip to content

Commit

Permalink
fix(#4): 🐛 there was a conflict with "Data for point X" table
Browse files Browse the repository at this point in the history
fixed behaviour conflict triggered by "Add a new location" button
  • Loading branch information
franmagn committed Oct 14, 2025
1 parent 939af8d commit b3acc9d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/AnnotationControl/annotationPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b3acc9d

Please sign in to comment.