Skip to content

Commit

Permalink
Add exception handling for mode double click (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
devleejb authored Mar 4, 2024
1 parent f82c891 commit 34e599a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/headers/DocumentHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function DocumentHeader() {
]);

const handleChangeMode = (newMode: EditorModeType) => {
if (!newMode) return;
dispatch(setMode(newMode));
};

Expand Down

0 comments on commit 34e599a

Please sign in to comment.