Skip to content

Commit

Permalink
revert: editor unfocusing is bigger issue, so revert back to value no…
Browse files Browse the repository at this point in the history
…t updating
  • Loading branch information
bobalazek committed May 28, 2024
1 parent 3b0e6a8 commit 1130a35
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import { useNotesStore } from '../../state/notesStore';
export const NoteEditor = () => {
const { selectedNote, selectedNoteData, setSelectedNoteData } = useNotesStore();

const plateEditorKey = selectedNote ? `${selectedNote.id}-${selectedNote.updatedAt}` : 'new';
const plateEditorKey = selectedNote ? selectedNote.id : 'new';

// TODO: fix issue where the new content value is not applied (mostly when we get changes from websockes)

return (
<div className="flex select-none flex-col" data-test="note-editor">
Expand Down

0 comments on commit 1130a35

Please sign in to comment.