Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit bb23082

Browse files
committed
Preventing infinite loop on clearIntents
1 parent e539702 commit bb23082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/control-component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ function createControlClass(s = defaultStrategy) {
585585
if (!shallowEqual(errors, fieldValue.errors)) {
586586
dispatch(mergeOrSetErrors(model, errors, options));
587587
} else if (options.clearIntents) {
588-
dispatch(actions.clearIntents(options.clearIntents));
588+
dispatch(actions.clearIntents(model, options.clearIntents));
589589
}
590590

591591
return modelValue;

0 commit comments

Comments
 (0)