Web:Client:Fixed so that the locale argument is not passed when it is null.

This commit is contained in:
Vlada Gazizova 2023-12-15 12:56:31 +03:00
parent ea96d31b6b
commit 2863638eb2

View File

@ -239,10 +239,10 @@ class OformsStore {
const url = combineUrl(uploadDomain, uploadDashboard, `/${categoryTypeId}`);
const categories = await getCategoriesOfCategoryType(
url,
this.oformsFilter.locale
);
const categories = !!this.oformsFilter.locale
? await getCategoriesOfCategoryType(url, this.oformsFilter.locale)
: await getCategoriesOfCategoryType(url);
return categories;
};