1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-20 13:22:04 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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> = {