diff --git a/docs/walkthroughs/06-saving-to-a-database.md b/docs/walkthroughs/06-saving-to-a-database.md index 03a255c5e..cd3b64e3e 100644 --- a/docs/walkthroughs/06-saving-to-a-database.md +++ b/docs/walkthroughs/06-saving-to-a-database.md @@ -72,7 +72,7 @@ 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')) || [ + () => JSON.parse(localStorage.getItem('content')) || [ { type: 'paragraph', children: [{ text: 'A line of text in a paragraph.' }],