From 7ecdee7a8925e9336d10e3e7d461a81e7a4afc79 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 25 Nov 2025 08:24:26 +0200 Subject: [PATCH] refactor(popup_editor): use simpler mechanism for retrieving note ID --- apps/client/src/widgets/dialogs/PopupEditor.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/client/src/widgets/dialogs/PopupEditor.tsx b/apps/client/src/widgets/dialogs/PopupEditor.tsx index abfa8ba5f..53d543002 100644 --- a/apps/client/src/widgets/dialogs/PopupEditor.tsx +++ b/apps/client/src/widgets/dialogs/PopupEditor.tsx @@ -30,10 +30,8 @@ export default function PopupEditor() { useTriliumEvent("openInPopup", async ({ noteIdOrPath }) => { const noteContext = new NoteContext("_popup-editor"); - const resolvedNotePath = await tree.resolveNotePath(noteIdOrPath, noteContext.hoistedNoteId); - if (!resolvedNotePath) return; - const noteId = tree.getNoteIdAndParentIdFromUrl(resolvedNotePath); + const noteId = tree.getNoteIdAndParentIdFromUrl(noteIdOrPath); if (!noteId.noteId) return; const note = await froca.getNote(noteId.noteId); if (!note) return;