diff --git a/src/pages/Editor.tsx b/src/pages/Editor.tsx index a9ece7d..4b1f2f7 100644 --- a/src/pages/Editor.tsx +++ b/src/pages/Editor.tsx @@ -269,6 +269,7 @@ function EditorPageWrapper({ service }: { service: TacticService }) { stepsVersions.set(stepId, versions) versions.insertAndCut(contentResult) + console.log(contentResult) setStepContent(contentResult, false) } diff --git a/src/service/LocalStorageTacticService.ts b/src/service/LocalStorageTacticService.ts index daf05c4..2cce23d 100644 --- a/src/service/LocalStorageTacticService.ts +++ b/src/service/LocalStorageTacticService.ts @@ -23,6 +23,10 @@ export class LocalStorageTacticService implements TacticService { GUEST_MODE_STEP_ROOT_NODE_INFO_STORAGE_KEY, JSON.stringify({ id: 1, children: [] }), ) + localStorage.setItem( + GUEST_MODE_STEP_CONTENT_STORAGE_KEY + 1, + JSON.stringify({components: []}) + ) } return new LocalStorageTacticService()