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

Commit b4f644c

Browse files
committed
Bypass validation if no form reducer exists. Fixes #238
1 parent 9db9f8c commit b4f644c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/form-component.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ class Form extends Component {
5757
modelValue,
5858
} = this.props;
5959

60+
if (!formValue) {
61+
return;
62+
}
63+
6064
if (!validators && !errors && (modelValue !== nextProps.modelValue)) {
6165
if (!formValue.valid) {
6266
dispatch(actions.setValidity(model, true));

0 commit comments

Comments
 (0)