Skip to content

Commit

Permalink
Handle undefined status
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrojo77 committed Jan 15, 2025
1 parent c1610b5 commit a23c99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SlateEditor/RichTextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ const RichTextEditor = ({
// When form is submitted or form content has been revert to a previous version, the editor has to be reinitialized.
if (
(!submitted && prevSubmitted.current) ||
status.status === "revertVersion" ||
status.status === "acceptGenerated"
status?.status === "revertVersion" ||
status?.status === "acceptGenerated"
) {
if (isFirstNormalize) {
return;
Expand Down

0 comments on commit a23c99c

Please sign in to comment.