Skip to content

Commit 3e4b6bf

Browse files
committed
fix: selecting migrated notes
1 parent 57b100b commit 3e4b6bf

File tree

1 file changed

+5
-5
lines changed
  • src/components/NoteManager/components

1 file changed

+5
-5
lines changed

src/components/NoteManager/components/Note.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ export function Note({ note, active = false, onEditNote, onDeleteNote }: NotePro
8585

8686
setLocationParams({
8787
version: locationParams.version,
88-
selectionStart: note.original.selectionStart,
89-
selectionEnd: note.original.selectionEnd,
88+
selectionStart: note.current.selectionStart,
89+
selectionEnd: note.current.selectionEnd,
9090
});
9191
};
9292

@@ -105,9 +105,9 @@ export function Note({ note, active = false, onEditNote, onDeleteNote }: NotePro
105105
}
106106

107107
setLocationParams({
108-
version: note.original.version,
109-
selectionStart: note.original.selectionStart,
110-
selectionEnd: note.original.selectionEnd,
108+
version: locationParams.version,
109+
selectionStart: note.current.selectionStart,
110+
selectionEnd: note.current.selectionEnd,
111111
});
112112
};
113113

0 commit comments

Comments
 (0)