Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Jul 12, 2023
1 parent 4a1ce6d commit ade1fad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/client/grapes/editor/initEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ const initEditor = async (startServer = true, standaloneServer: boolean): Promis

if (startServer) {
editor.on('storage:store', () => {
const e = { components: editor.getComponents(), styles: editor.getStyles() }
const e = {
components: JSON.stringify(editor.getComponents()),
styles: JSON.stringify(editor.getStyle()),
}
saveTemplate(e, standaloneServer)
})
const data = await loadTemplate(standaloneServer)
Expand Down

0 comments on commit ade1fad

Please sign in to comment.