fix(jump_to_note): fix enum typescript error in switch statement

This commit is contained in:
Jakob Schlanstedt 2025-10-18 16:32:48 +02:00 committed by Jakob Schlanstedt
parent 9b6f094ce7
commit 911adbbdb7

View file

@ -93,12 +93,12 @@ export default function JumpToNoteDialogComponent() {
function onShown() {
const $autoComplete = refToJQuerySelector(autocompleteRef);
switch (mode) {
case "last-search":
case Mode.LastSearch:
break;
case "recent-notes":
case Mode.RecentNotes:
note_autocomplete.showRecentNotes($autoComplete);
break;
case "commands":
case Mode.Commands:
note_autocomplete.showAllCommands($autoComplete);
break;
}