Change null default value with undefined

This commit is contained in:
Alex Tselegidis 2023-02-07 09:29:12 +01:00
parent 77256e502a
commit dd3697c018

View file

@ -141,7 +141,7 @@ App.Pages.Services = (function () {
availabilities_type: $availabilitiesType.val(), availabilities_type: $availabilitiesType.val(),
attendants_number: $attendantsNumber.val(), attendants_number: $attendantsNumber.val(),
is_private: Number($isPrivate.prop('checked')), is_private: Number($isPrivate.prop('checked')),
id_categories: $category.val() || null id_categories: $category.val() || undefined
}; };
if ($id.val() !== '') { if ($id.val() !== '') {