diff --git a/docs/walkthroughs/installing-slate.md b/docs/walkthroughs/installing-slate.md index eb3c5eabf..28920e09a 100644 --- a/docs/walkthroughs/installing-slate.md +++ b/docs/walkthroughs/installing-slate.md @@ -40,11 +40,7 @@ const initialValue = Value.fromJSON({ nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], }, @@ -70,11 +66,7 @@ const initialValue = Value.fromJSON({ nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], }, diff --git a/docs/walkthroughs/saving-to-a-database.md b/docs/walkthroughs/saving-to-a-database.md index 3dccc81aa..537a3d571 100644 --- a/docs/walkthroughs/saving-to-a-database.md +++ b/docs/walkthroughs/saving-to-a-database.md @@ -23,11 +23,7 @@ const initialValue = Value.fromJSON({ nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], }, @@ -66,11 +62,7 @@ const initialValue = Value.fromJSON({ nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], }, @@ -114,11 +106,7 @@ const initialValue = Value.fromJSON( nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], }, @@ -161,11 +149,7 @@ const initialValue = Value.fromJSON( nodes: [ { object: 'text', - leaves: [ - { - text: 'A line of text in a paragraph.', - }, - ], + text: 'A line of text in a paragraph.', }, ], },