Skip to content

Commit

Permalink
fix(web): force update plate editor once we get new data from websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
bobalazek committed May 28, 2024
1 parent 435f809 commit 2f07c1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useNotesStore } from '../../state/notesStore';
export const NoteEditor = () => {
const { selectedNote, selectedNoteData, setSelectedNoteData } = useNotesStore();

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

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

0 comments on commit 2f07c1c

Please sign in to comment.