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:
parent
1ce3f4cf62
commit
a2558b37b0
@ -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> = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user