Skip to content

Commit

Permalink
fix: employee setting handling for employee field mapping (#1137)
Browse files Browse the repository at this point in the history
* fix: employee setting handling for employee field mapping

* name

* vendor and null
  • Loading branch information
anishfyle authored Jan 6, 2025
1 parent 977e96c commit aefcef5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export class QBOEmployeeSettingModel {
});
}

static constructPayload(employeeSettingsForm: FormGroup): QBOEmployeeSettingPost {
static constructPayload(employeeSettingsForm: FormGroup): QBOEmployeeSettingPost {
const employeeSettingPayload: QBOEmployeeSettingPost = {
workspace_general_settings: {
employee_field_mapping: employeeSettingsForm.get('employeeMapping')?.value,
auto_map_employees: employeeSettingsForm.get('autoMapEmployee')?.value
employee_field_mapping: employeeSettingsForm.get('employeeMapping')?.value || EmployeeFieldMapping.VENDOR,
auto_map_employees: employeeSettingsForm.get('autoMapEmployee')?.value || null
}
};
return employeeSettingPayload;
Expand Down

0 comments on commit aefcef5

Please sign in to comment.