Skip to content

Commit e9f9d44

Browse files
committed
fix: save always when modal save button is clicked
1 parent 080e62d commit e9f9d44

File tree

1 file changed

+2
-4
lines changed
  • src/editors/containers/EditorContainer

1 file changed

+2
-4
lines changed

src/editors/containers/EditorContainer/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@ const EditorContainer: React.FC<Props> = ({
7878
});
7979

8080
const onSave = () => {
81-
if (isDirty()) {
82-
setSaved(true);
83-
handleSave();
84-
}
81+
setSaved(true);
82+
handleSave();
8583
};
8684
// Stops user from navigating away if they have unsaved changes.
8785
usePromptIfDirty(() => {

0 commit comments

Comments
 (0)