@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portabletext/editor",
3
- "version": "1.42.0",
3
+ "version": "1.42.1",
4
4
  "description": "Portable Text Editor made in React",
5
5
  "keywords": [
6
6
  "sanity",
@@ -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
- (actionSet.length > 0 &&
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) {