mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 19:01:54 +02:00
fix linting issue (#4976)
This commit is contained in:
@@ -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.' }],
|
||||
},
|
||||
],
|
||||
[]
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user