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

Commit 93c4e42

Browse files
committed
Fixing error with null state values
1 parent 3027379 commit 93c4e42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const getFormStateKey = memoize((state, model) => {
5656
const flatState = flatten(state);
5757

5858
const formStateKey = findKey(flatState, (value) =>
59-
value.model && startsWith(model, value.model));
59+
value && value.model && startsWith(model, value.model));
6060

6161
return formStateKey;
6262
});

0 commit comments

Comments
 (0)