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

Commit 0c78ed3

Browse files
committed
Quick existence check
1 parent 3948e06 commit 0c78ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reducers/form/change-action-reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function updateFieldValue(field, action, parentModel = undefined) {
106106
}
107107

108108
function getFormValue(form) {
109-
if (!form.$form) return form.initialValue;
109+
if (form && !form.$form) return form.initialValue;
110110

111111
const result = mapValues(form, (field, key) => {
112112
if (key === '$form') return undefined;

0 commit comments

Comments
 (0)