mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-06 23:36:31 +02:00
Fixed last failing lint:prettier in serializing docs
This commit is contained in:
@@ -166,7 +166,7 @@ const deserialize = el => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const children = Array.from(el.childNodes).map(deserialize)
|
const children = Array.from(el.childNodes).map(deserialize)
|
||||||
|
|
||||||
if (children.length === 0) {
|
if (children.length === 0) {
|
||||||
children = [{ text: '' }]
|
children = [{ text: '' }]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user