diff --git a/docs/walkthroughs/06-saving-to-a-database.md b/docs/walkthroughs/06-saving-to-a-database.md index cd3b64e3e..208c7ff4e 100644 --- a/docs/walkthroughs/06-saving-to-a-database.md +++ b/docs/walkthroughs/06-saving-to-a-database.md @@ -72,12 +72,13 @@ const App = () => { const editor = useMemo(() => withReact(createEditor()), []) // Update the initial content to be pulled from Local Storage if it exists. const initialValue = useMemo( - () => JSON.parse(localStorage.getItem('content')) || [ - { - type: 'paragraph', - children: [{ text: 'A line of text in a paragraph.' }], - }, - ], + () => + JSON.parse(localStorage.getItem('content')) || [ + { + type: 'paragraph', + children: [{ text: 'A line of text in a paragraph.' }], + }, + ], [] )