Skip to content

Commit 74bf634

Browse files
committed
Fix linting issue on record-form
1 parent 5dffccc commit 74bf634

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/javascript/components/record-form/form/record-form.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function RecordForm({
6767

6868
const bindRecalculateFields = recalculateFields => {
6969
bindedRecalculateFields.current = recalculateFields;
70-
}
70+
};
7171

7272
const buildValidationSchema = formSections => {
7373
const schema = formSections.reduce((obj, item) => {
@@ -186,7 +186,7 @@ function RecordForm({
186186
if (typeof bindedRecalculateFields.current === "function") {
187187
bindedRecalculateFields.current();
188188
}
189-
})
189+
});
190190

191191
const handleConfirm = onConfirm => {
192192
onConfirm();
@@ -202,7 +202,6 @@ function RecordForm({
202202
formikValues.current = values;
203203
};
204204

205-
206205
if (!isEmpty(initialValues) && !isEmpty(forms)) {
207206
const validationSchema = buildValidationSchema(forms);
208207
const handleOnSubmit = values => {
@@ -231,6 +230,7 @@ function RecordForm({
231230
if (values) {
232231
calculatedFields.forEach(field => {
233232
const result = parseExpression(field.calculation.expression).evaluate(values);
233+
234234
if (values[field.name] !== result) {
235235
setFieldValue(field.name, result, false);
236236
}

0 commit comments

Comments
 (0)