From acdc5c3417e30ec50ff2499394205246ccb70ca7 Mon Sep 17 00:00:00 2001 From: Dylan Schiemann Date: Tue, 26 Apr 2022 18:10:55 +0100 Subject: [PATCH] fix linting issue (#4976) --- docs/walkthroughs/06-saving-to-a-database.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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.' }], + }, + ], [] )