@@ -194,7 +194,7 @@ export class FormStore extends ActionEmitter {
194
194
Touched : true
195
195
} as FieldState ) ) ;
196
196
197
- state = this . RecalculateDependentFormState ( state ) ;
197
+ return this . RecalculateDependentFormState ( state ) ;
198
198
} ) ;
199
199
200
200
this . emit ( new Actions . ValueChanged ( fieldId , newValue ) ) ;
@@ -235,7 +235,7 @@ export class FormStore extends ActionEmitter {
235
235
Validating : false
236
236
} as FieldState ) ) ;
237
237
238
- state = this . RecalculateDependentFormState ( state ) ;
238
+ return this . RecalculateDependentFormState ( state ) ;
239
239
} ) ;
240
240
} catch ( error ) {
241
241
// Skip validation if the value has changed again
@@ -256,7 +256,7 @@ export class FormStore extends ActionEmitter {
256
256
Error : recordify < FormError , FormErrorRecord > ( formError ! )
257
257
} as FieldState ) ) ;
258
258
259
- state = this . RecalculateDependentFormState ( state ) ;
259
+ return this . RecalculateDependentFormState ( state ) ;
260
260
} ) ;
261
261
}
262
262
}
@@ -288,7 +288,7 @@ export class FormStore extends ActionEmitter {
288
288
Validating : false
289
289
} as FormState ) ;
290
290
291
- state = this . RecalculateDependentFormState ( state ) ;
291
+ return this . RecalculateDependentFormState ( state ) ;
292
292
} ) ;
293
293
} catch ( error ) {
294
294
const formError = ConstructFormError ( error ) ;
@@ -302,7 +302,7 @@ export class FormStore extends ActionEmitter {
302
302
Error : recordify < FormError , FormErrorRecord > ( formError ! )
303
303
} as FormState ) ;
304
304
305
- state = this . RecalculateDependentFormState ( state ) ;
305
+ return this . RecalculateDependentFormState ( state ) ;
306
306
} ) ;
307
307
}
308
308
}
0 commit comments