fix guest mode
continuous-integration/drone/push Build is passing Details

share
maxime 1 year ago
parent 307a978e15
commit 3a983f593a

@ -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()

Loading…
Cancel
Save