Skip to content

Commit

Permalink
fix recursive state updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura committed Oct 19, 2023
1 parent 613e6d6 commit f6f2476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/organisms/room/RoomInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
const parsedDraft = JSON.parse(JSON.stringify(editor.children));
setMsgDraft(parsedDraft);
} else {
roomIdToMsgDraftAtomFamily.remove(roomId);
setMsgDraft([]);
}
resetEditor(editor);
resetEditorHistory(editor);
Expand Down

0 comments on commit f6f2476

Please sign in to comment.