enzostvs HF Staff commited on
Commit
7ad6fe3
·
1 Parent(s): b15b1be
Files changed (1) hide show
  1. components/editor/index.tsx +1 -1
components/editor/index.tsx CHANGED
@@ -58,7 +58,7 @@ export const AppEditor = ({
58
  });
59
 
60
  useEffect(() => {
61
- if (hasUnsavedChanges && !isAiWorking && project?.name) {
62
  setShowSavePopup(true);
63
  } else {
64
  setShowSavePopup(false);
 
58
  });
59
 
60
  useEffect(() => {
61
+ if (hasUnsavedChanges && !isAiWorking && project?.space_id) {
62
  setShowSavePopup(true);
63
  } else {
64
  setShowSavePopup(false);