diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts index 42678d63e..561c237c9 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts +++ b/apps/ai-game-creator-shell/src/view/ui-editor/useUiEditorPage.ts @@ -1330,9 +1330,7 @@ export function useUiEditorSession( return false; } setPersistedRevision(result.revision); - if (JSON.stringify(editor.state) === snapshotSignature) { - setSavedStateSignature(snapshotSignature); - } + setSavedStateSignature(snapshotSignature); return true; }); } catch { @@ -1401,9 +1399,7 @@ export function useUiEditorSession( return null; } setPersistedRevision(saved.revision); - if (JSON.stringify(editor.state) === snapshotSignature) { - setSavedStateSignature(snapshotSignature); - } + setSavedStateSignature(snapshotSignature); return await stateStore.generateCode(resourceId); }); } catch (cause) {