diff --git a/assets/js/http/admins_http_client.js b/assets/js/http/admins_http_client.js index b987f456..b3a22cac 100644 --- a/assets/js/http/admins_http_client.js +++ b/assets/js/http/admins_http_client.js @@ -98,7 +98,7 @@ App.Http.Admins = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/appointments_http_client.js b/assets/js/http/appointments_http_client.js index 9436cb9b..76026862 100644 --- a/assets/js/http/appointments_http_client.js +++ b/assets/js/http/appointments_http_client.js @@ -98,7 +98,7 @@ App.Http.Appointments = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/blocked_periods_http_client.js b/assets/js/http/blocked_periods_http_client.js index 8c3caddf..14eeb441 100644 --- a/assets/js/http/blocked_periods_http_client.js +++ b/assets/js/http/blocked_periods_http_client.js @@ -98,7 +98,7 @@ App.Http.BlockedPeriods = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/customers_http_client.js b/assets/js/http/customers_http_client.js index d6ad0f0d..46b6c388 100644 --- a/assets/js/http/customers_http_client.js +++ b/assets/js/http/customers_http_client.js @@ -98,7 +98,7 @@ App.Http.Customers = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/providers_http_client.js b/assets/js/http/providers_http_client.js index 3261d7ec..2b51afa8 100644 --- a/assets/js/http/providers_http_client.js +++ b/assets/js/http/providers_http_client.js @@ -98,7 +98,7 @@ App.Http.Providers = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/secretaries_http_client.js b/assets/js/http/secretaries_http_client.js index af2234bb..0dad0865 100644 --- a/assets/js/http/secretaries_http_client.js +++ b/assets/js/http/secretaries_http_client.js @@ -98,7 +98,7 @@ App.Http.Secretaries = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/service_categories_http_client.js b/assets/js/http/service_categories_http_client.js index 9d31bec7..9bda3b9e 100644 --- a/assets/js/http/service_categories_http_client.js +++ b/assets/js/http/service_categories_http_client.js @@ -98,7 +98,7 @@ App.Http.ServiceCategories = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/services_http_client.js b/assets/js/http/services_http_client.js index 878aa5e0..6211d5c5 100644 --- a/assets/js/http/services_http_client.js +++ b/assets/js/http/services_http_client.js @@ -98,7 +98,7 @@ App.Http.Services = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/settings_http_client.js b/assets/js/http/settings_http_client.js index f2937077..e42134b4 100644 --- a/assets/js/http/settings_http_client.js +++ b/assets/js/http/settings_http_client.js @@ -98,7 +98,7 @@ App.Http.Settings = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/unavailabilities_http_client.js b/assets/js/http/unavailabilities_http_client.js index 87c58cce..27a4b953 100644 --- a/assets/js/http/unavailabilities_http_client.js +++ b/assets/js/http/unavailabilities_http_client.js @@ -98,7 +98,7 @@ App.Http.Unavailabilities = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data); diff --git a/assets/js/http/webhooks_http_client.js b/assets/js/http/webhooks_http_client.js index 3ecb86a8..a23fb677 100644 --- a/assets/js/http/webhooks_http_client.js +++ b/assets/js/http/webhooks_http_client.js @@ -98,7 +98,7 @@ App.Http.Webhooks = (function () { keyword, limit, offset, - order_by: orderBy, + order_by: orderBy || undefined, }; return $.post(url, data);