diff --git a/editor/stores/editorStore.ts b/editor/stores/editorStore.ts index 4429808..c8b14b9 100644 --- a/editor/stores/editorStore.ts +++ b/editor/stores/editorStore.ts @@ -210,6 +210,8 @@ export const useEditorStore = defineStore('editor', () => { selectedNodeId.value = null aiChanges.value = null dirty.value = false + lastSavedContent = JSON.stringify(v.gameData) + if (saveVersionTimer) { clearTimeout(saveVersionTimer); saveVersionTimer = null } autoSave() }