fixed up issues with saving

This commit is contained in:
ari committed 2022-06-04 22:10:41 -04:00
1 parent 25bb19dbe5
commit 911f867518
7 files changed
+54 -26

No files matched your search

+1 -5
View File
@@ -68,11 +68,7 @@ export const NodeEditor: FC<NodeEditorProps> = ({
className="node-editor--footer--save"
onClick={() => {
if (areYouSureNotReady('save')) {
if (JSON.stringify(state.data) !== JSON.stringify(node)) {
onSave(state.data)
} else {
onClose()
}
onSave(state.data)
}
}}
title={