1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-07-31 04:20:26 +02:00

Fix boolean not assignable to string typescript error (#4568)

This commit is contained in:
Jas
2021-10-07 06:10:50 -07:00
committed by GitHub
parent 1ce3f4cf62
commit a2558b37b0

View File

@@ -66,9 +66,9 @@ const toggleBlock = (editor, format) => {
Transforms.unwrapNodes(editor, {
match: n =>
LIST_TYPES.includes(
!Editor.isEditor(n) && SlateElement.isElement(n) && n.type
),
!Editor.isEditor(n) &&
SlateElement.isElement(n) &&
LIST_TYPES.includes(n.type),
split: true,
})
const newProperties: Partial<SlateElement> = {