@ -269,6 +269,7 @@ function EditorPageWrapper({ service }: { service: TacticService }) {
stepsVersions.set(stepId, versions)
versions.insertAndCut(contentResult)
console.log(contentResult)
setStepContent(contentResult, false)
}
@ -23,6 +23,10 @@ export class LocalStorageTacticService implements TacticService {
GUEST_MODE_STEP_ROOT_NODE_INFO_STORAGE_KEY,
JSON.stringify(<StepInfoNode>{ id: 1, children: [] }),
)
localStorage.setItem(
GUEST_MODE_STEP_CONTENT_STORAGE_KEY + 1,
JSON.stringify(<StepContent>{components: []})
return new LocalStorageTacticService()