WEB-692 Datatables parameter is optional and must be skipped from being sent to the backend while creating a client (#3129)
This commit is contained in:
@@ -161,7 +161,9 @@ export class CreateClientComponent {
|
||||
this.clientDatatables.forEach((clientDatatable: ClientDatatableStepComponent) => {
|
||||
datatables.push(clientDatatable.payload);
|
||||
});
|
||||
clientData['datatables'] = datatables;
|
||||
if (datatables.length > 0) {
|
||||
clientData['datatables'] = datatables;
|
||||
}
|
||||
}
|
||||
|
||||
this.clientsService.createClient(clientData).subscribe((response: any) => {
|
||||
|
||||
Reference in New Issue
Block a user