From 048220218b1fc49cd075c32eb7aa6490cffe1725 Mon Sep 17 00:00:00 2001 From: Dhaarani <55541808+DhaaraniCIT@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:04:06 +0530 Subject: [PATCH] sage 300 fix (#939) --- .../configuration-import-field.component.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/app/shared/components/configuration/configuration-import-field/configuration-import-field.component.ts b/src/app/shared/components/configuration/configuration-import-field/configuration-import-field.component.ts index 78d2d1e79..21706f519 100644 --- a/src/app/shared/components/configuration/configuration-import-field/configuration-import-field.component.ts +++ b/src/app/shared/components/configuration/configuration-import-field/configuration-import-field.component.ts @@ -231,7 +231,6 @@ export class ConfigurationImportFieldComponent implements OnInit { (expenseField as FormGroup).controls.source_field.patchValue(''); (expenseField as FormGroup).controls.import_to_fyle.patchValue(false); (expenseField as FormGroup).controls.import_to_fyle.enable(); - this.onImportToFyleToggleChange({checked: false}, (expenseField as FormGroup).controls.destination_field.value); event?.stopPropagation(); this.isXeroProjectMapped = false; this.xeroProjectMapping.emit(this.isXeroProjectMapped); @@ -239,7 +238,6 @@ export class ConfigurationImportFieldComponent implements OnInit { onSwitchChanged(event: any, formGroup: AbstractControl): void { this.onShowWarningForDependentFields(event, formGroup); - this.onImportToFyleToggleChange(event, formGroup?.get('destination_field')?.value); if (event.checked && this.appName === AppName.SAGE300 && formGroup.get('source_field')?.value === 'PROJECT') { this.form.controls.isDependentImportEnabled.setValue(true); }