From dd4a01d9f8986dc18071eb918446586c7ab225f2 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 27 Aug 2025 17:59:37 +0300 Subject: [PATCH] fix(react/dialogs): jump to note sometimes showing empty list --- apps/client/src/widgets/dialogs/jump_to_note.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/dialogs/jump_to_note.tsx b/apps/client/src/widgets/dialogs/jump_to_note.tsx index 0b4306bfe..89c438803 100644 --- a/apps/client/src/widgets/dialogs/jump_to_note.tsx +++ b/apps/client/src/widgets/dialogs/jump_to_note.tsx @@ -31,7 +31,7 @@ export default function JumpToNoteDialogComponent() { if (commandMode) { newMode = "commands"; initialText = ">"; - } else if (Date.now() - lastOpenedTs <= KEEP_LAST_SEARCH_FOR_X_SECONDS * 1000 && actualText) { + } else if (Date.now() - lastOpenedTs <= KEEP_LAST_SEARCH_FOR_X_SECONDS * 1000 && actualText.current) { // if you open the Jump To dialog soon after using it previously, it can often mean that you // actually want to search for the same thing (e.g., you opened the wrong note at first try) // so we'll keep the content.