Skip to content

Commit

Permalink
style(#4): 🎨 ran format
Browse files Browse the repository at this point in the history
  • Loading branch information
franmagn committed Oct 23, 2025
1 parent 4795405 commit b084e93
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/AnnotationControl/annotationPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,11 @@ export function initAnnotationsPanel(viewer) {
}
} catch (e) {
try {
if (window.jQuery && window.jQuery.jstree && window.jQuery.jstree.reference) {
if (
window.jQuery &&
window.jQuery.jstree &&
window.jQuery.jstree.reference
) {
window.jQuery.jstree.reference(node.id).delete_node(node.id)
}
} catch (_) {}
Expand Down Expand Up @@ -881,7 +885,9 @@ export function initAnnotationsPanel(viewer) {
// update jsTree node text
try {
if (!window.jQuery) return
const tree = window.jQuery('#jstree_scene').jstree && window.jQuery('#jstree_scene').jstree()
const tree =
window.jQuery('#jstree_scene').jstree &&
window.jQuery('#jstree_scene').jstree()
if (tree) {
const annotationsRoot = tree.get_json('annotations')
if (annotationsRoot && annotationsRoot.children) {
Expand Down

0 comments on commit b084e93

Please sign in to comment.