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:
@@ -66,9 +66,9 @@ const toggleBlock = (editor, format) => {
|
|||||||
|
|
||||||
Transforms.unwrapNodes(editor, {
|
Transforms.unwrapNodes(editor, {
|
||||||
match: n =>
|
match: n =>
|
||||||
LIST_TYPES.includes(
|
!Editor.isEditor(n) &&
|
||||||
!Editor.isEditor(n) && SlateElement.isElement(n) && n.type
|
SlateElement.isElement(n) &&
|
||||||
),
|
LIST_TYPES.includes(n.type),
|
||||||
split: true,
|
split: true,
|
||||||
})
|
})
|
||||||
const newProperties: Partial<SlateElement> = {
|
const newProperties: Partial<SlateElement> = {
|
||||||
|
Reference in New Issue
Block a user