Skip to content

Commit

Permalink
fixed json parse
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Jul 12, 2023
1 parent 54c2494 commit 4a1ce6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client/grapes/editor/initEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ const initEditor = async (startServer = true, standaloneServer: boolean): Promis
const content = JSON.parse(data)

if (!content.components) return
editor.setComponents(content.components)
editor.setStyle(content.styles)
editor.setComponents(JSON.parse(content.components))
editor.setStyle(JSON.parse(content.styles))
}
}

Expand Down

0 comments on commit 4a1ce6d

Please sign in to comment.