1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-01 19:22:35 +02:00

fix linting issue (#4976)

This commit is contained in:
Dylan Schiemann
2022-04-26 18:10:55 +01:00
committed by GitHub
parent dcd36be973
commit acdc5c3417

View File

@@ -72,12 +72,13 @@ const App = () => {
const editor = useMemo(() => withReact(createEditor()), []) const editor = useMemo(() => withReact(createEditor()), [])
// Update the initial content to be pulled from Local Storage if it exists. // Update the initial content to be pulled from Local Storage if it exists.
const initialValue = useMemo( const initialValue = useMemo(
() => JSON.parse(localStorage.getItem('content')) || [ () =>
{ JSON.parse(localStorage.getItem('content')) || [
type: 'paragraph', {
children: [{ text: 'A line of text in a paragraph.' }], type: 'paragraph',
}, children: [{ text: 'A line of text in a paragraph.' }],
], },
],
[] []
) )