chore(collection/presentation): address requested changes

This commit is contained in:
Elian Doran
2025-10-16 15:32:16 +03:00
parent 04eeb28c09
commit 5d8ca1ecf7
4 changed files with 12 additions and 21 deletions

View File

@@ -439,7 +439,7 @@ class NoteContext extends Component implements EventListener<"entitiesReloaded">
}
export function openInCurrentNoteContext(evt: MouseEvent | JQuery.ClickEvent | JQuery.MouseDownEvent | React.PointerEvent<HTMLCanvasElement> | null, notePath: string, viewScope?: ViewScope) {
const ntxId = $(evt?.target as any)
const ntxId = $(evt?.target as Element)
.closest("[data-ntx-id]")
.attr("data-ntx-id");