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
parent cb5954e8c7
commit a15d661fd7

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;
}