Commit bba6b892 authored by Florian Azizian's avatar Florian Azizian

FEAT #11270 TIME 0:05 check values null in update custom fields front

parent ebae6597
......@@ -166,7 +166,9 @@ export class CustomFieldsAdministrationComponent implements OnInit {
// TO FIX DATA BINDING SIMPLE ARRAY VALUES
const customFieldToUpdate = { ...customField };
customFieldToUpdate.values = customField.values.map((data: any) => data.label)
if (customField.values != null) {
customFieldToUpdate.values = customField.values.map((data: any) => data.label)
}
this.http.put('../../rest/customFields/' + customField.id, customFieldToUpdate).pipe(
tap(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment