Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(notes): stay on note when changing folder via metadata row

Gabriel Stein3dfb4721b9c3
diff --git a/src/components/notes/PersonalNotesView.tsx b/src/components/notes/PersonalNotesView.tsx
index 293a58725..a0649d690 100644
--- a/src/components/notes/PersonalNotesView.tsx
+++ b/src/components/notes/PersonalNotesView.tsx
@@ -354,11 +354,11 @@ export default function PersonalNotesView({
const handleMoveToFolder = useCallback(
async (noteId: number, folderId: number) => {
await window.electronAPI.updateNote(noteId, { folder_id: folderId });
- // During meeting mode, keep the note visible — don't re-filter by folder
- if (activeFolderId && !isMeetingMode) await initializeNotes(null, 50, activeFolderId);
+ // Don't re-filter notes — the IPC onNoteUpdated listener updates the note
+ // in the store, and we stay on the current note. Folder counts refresh below.
loadFolders();
},
- [activeFolderId, isMeetingMode, loadFolders]
+ [loadFolders]
);
const { dragState, noteDragHandlers, folderDropHandlers } = useNoteDragAndDrop({
@@ -371,7 +371,6 @@ export default function PersonalNotesView({
const result = await window.electronAPI.createFolder(folderName);
if (result.success && result.folder) {
await window.electronAPI.updateNote(noteId, { folder_id: result.folder.id });
- if (activeFolderId && !isMeetingMode) await initializeNotes(null, 50, activeFolderId);
await loadFolders();
} else if (result.error) {
toast({
@@ -381,7 +380,7 @@ export default function PersonalNotesView({
});
}
},
- [activeFolderId, isMeetingMode, loadFolders, toast, t]
+ [loadFolders, toast, t]
);
const handleApplyEnhancement = useCallback(