mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 10:29:48 +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) {
|
||||
if (!schema.hasDecorators) {
|
||||
return []
|
||||
}
|
||||
|
||||
const descendant = this.assertDescendant(key)
|
||||
let child = this.getHighestChild(key)
|
||||
let decorators = []
|
||||
|
Reference in New Issue
Block a user