Skip to content

Commit 21c24ff

Browse files
Stop setting last-open note ID
Remove the call to repo.set_last_open_note_id(Some(&input.id)) from NoteService. This avoids updating the last-open note ID as a side effect when handling note updates/refreshing wikilink targets, preventing unintended state changes.
1 parent d52907f commit 21c24ff

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

app/src-tauri/src/domain/notes/service.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ impl NoteService {
468468
Vec::new()
469469
};
470470
repo.refresh_wikilink_targets(&[previous_title, title.clone()])?;
471-
repo.set_last_open_note_id(Some(&input.id))?;
472471

473472
let record = repo.note_by_id(&input.id)?.ok_or(NoteError::NotFound)?;
474473
Ok((record, note_changed, affected_linked_note_ids))

0 commit comments

Comments
 (0)