mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-31 02:49:56 +02:00
Always return early when schema has no decorators in getDescendantDecorators
This commit is contained in:
@@ -378,6 +378,10 @@ const Node = {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
getDescendantDecorators(key, schema) {
|
getDescendantDecorators(key, schema) {
|
||||||
|
if (!schema.hasDecorators) {
|
||||||
|
return []
|
||||||
|
}
|
||||||
|
|
||||||
const descendant = this.assertDescendant(key)
|
const descendant = this.assertDescendant(key)
|
||||||
let child = this.getHighestChild(key)
|
let child = this.getHighestChild(key)
|
||||||
let decorators = []
|
let decorators = []
|
||||||
|
Reference in New Issue
Block a user