@portabletext/editor 1.42.0 → 1.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -469,10 +469,13 @@ export const editorMachine = setup({
|
|
|
469
469
|
)
|
|
470
470
|
|
|
471
471
|
for (const actionSet of actionSets) {
|
|
472
|
+
if (actionSet.length === 0) {
|
|
473
|
+
continue
|
|
474
|
+
}
|
|
475
|
+
|
|
472
476
|
behaviorOverwritten =
|
|
473
477
|
behaviorOverwritten ||
|
|
474
|
-
|
|
475
|
-
actionSet.some((action) => action.type !== 'effect'))
|
|
478
|
+
actionSet.some((action) => action.type !== 'effect')
|
|
476
479
|
|
|
477
480
|
withApplyingBehaviorActionSet(event.editor, () => {
|
|
478
481
|
for (const action of actionSet) {
|