From 74f6f110886896f57b4b4b144bcb05a01e58d77e Mon Sep 17 00:00:00 2001 From: suyashpatil78 Date: Wed, 13 Mar 2024 12:40:58 +0530 Subject: [PATCH] minor --- src/app/fyle/add-edit-mileage/add-edit-mileage.page.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/fyle/add-edit-mileage/add-edit-mileage.page.ts b/src/app/fyle/add-edit-mileage/add-edit-mileage.page.ts index f97df02f4e..145da47d5c 100644 --- a/src/app/fyle/add-edit-mileage/add-edit-mileage.page.ts +++ b/src/app/fyle/add-edit-mileage/add-edit-mileage.page.ts @@ -2380,7 +2380,8 @@ export class AddEditMileagePage implements OnInit { cost_center_name: formValue.costCenter && formValue.costCenter.name, cost_center_code: formValue.costCenter && formValue.costCenter.code, commute_deduction: this.showCommuteDeductionField ? formValue.commuteDeduction : null, - commute_details_id: this.showCommuteDeductionField ? this.commuteDetails?.id : null, + commute_details_id: + this.showCommuteDeductionField && formValue.commuteDeduction ? this.commuteDetails?.id : null, }, dataUrls: [], ou: etxn.ou,