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); }