Skip to content

Commit

Permalink
xero c1 error fix (#959)
Browse files Browse the repository at this point in the history
* xero c1 error fix
  • Loading branch information
DhaaraniCIT authored and Hrishabh17 committed Sep 18, 2024
1 parent c8ab363 commit 9af570f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export class ConfigurationImportFieldComponent implements OnInit {
}

getOptions(expenseField: AbstractControl): FyleField[] {
if (expenseField.get('destination_field')?.value === 'CUSTOMER' && this.appName === AppName.XERO && !expenseField.get('import_to_fyle')?.value) {
if (expenseField.get('destination_field')?.value === 'CUSTOMER' && this.appName === AppName.XERO) {
return [{ attribute_type: 'DISABLED_XERO_SOURCE_FIELD', display_name: 'Project', is_dependent: false }];
} else if (expenseField.get('source_field')?.value === 'CATEGORY') {
return this.fyleFieldOptions.filter(option => option.attribute_type === 'CATEGORY');
Expand Down Expand Up @@ -308,7 +308,7 @@ export class ConfigurationImportFieldComponent implements OnInit {
}

ngOnInit(): void {
if (this.form.controls?.dependentFieldImportToggle) {
if (this.form.controls?.dependentFieldImportToggle?.value) {
this.form.controls?.dependentFieldImportToggle.disable();
}
if (this.appName !== AppName.SAGE300) {
Expand Down

0 comments on commit 9af570f

Please sign in to comment.