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

Commit eb18aa8

Browse files
committed
Ensuring that subfields are revalidated upon change. Fixes #1020
1 parent 643aeab commit eb18aa8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,17 @@ function updateFieldValue(field, action, parentModel = undefined) {
9292
const updatedField = mapValues(value, (subValue, index) => {
9393
// TODO: refactor
9494
const subField = field[index]
95-
|| createInitialState(`${`${(parentModel
96-
? `${parentModel}.`
97-
: '')
98-
}${model}`}.${index}`, subValue);
95+
|| createInitialState(`${`${(parentModel
96+
? `${parentModel}.`
97+
: '')
98+
}${model}`}.${index}`, subValue);
9999

100100
if (Object.hasOwnProperty.call(subField, '$form')) {
101101
return updateFieldValue(subField, {
102102
model: index,
103103
value: subValue,
104+
external,
105+
silent,
104106
load,
105107
}, parentModel ? `${parentModel}.${model}` : model);
106108
}

0 commit comments

Comments
 (0)