File tree 1 file changed +3
-3
lines changed
app/javascript/components/record-form/form
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ function RecordForm({
67
67
68
68
const bindRecalculateFields = recalculateFields => {
69
69
bindedRecalculateFields . current = recalculateFields ;
70
- }
70
+ } ;
71
71
72
72
const buildValidationSchema = formSections => {
73
73
const schema = formSections . reduce ( ( obj , item ) => {
@@ -186,7 +186,7 @@ function RecordForm({
186
186
if ( typeof bindedRecalculateFields . current === "function" ) {
187
187
bindedRecalculateFields . current ( ) ;
188
188
}
189
- } )
189
+ } ) ;
190
190
191
191
const handleConfirm = onConfirm => {
192
192
onConfirm ( ) ;
@@ -202,7 +202,6 @@ function RecordForm({
202
202
formikValues . current = values ;
203
203
} ;
204
204
205
-
206
205
if ( ! isEmpty ( initialValues ) && ! isEmpty ( forms ) ) {
207
206
const validationSchema = buildValidationSchema ( forms ) ;
208
207
const handleOnSubmit = values => {
@@ -231,6 +230,7 @@ function RecordForm({
231
230
if ( values ) {
232
231
calculatedFields . forEach ( field => {
233
232
const result = parseExpression ( field . calculation . expression ) . evaluate ( values ) ;
233
+
234
234
if ( values [ field . name ] !== result ) {
235
235
setFieldValue ( field . name , result , false ) ;
236
236
}
You can’t perform that action at this time.
0 commit comments