@selfcommunity/react-core 0.4.7 → 0.4.8-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,9 +50,9 @@ function useSCFetchCustomAdv({ id = null, position = null, categoriesId = null,
50
50
  }
51
51
  return api_services_1.http
52
52
  .request({
53
- url: api_services_1.Endpoints.CustomAdvSearch.url(),
53
+ url: api_services_1.Endpoints.CustomAdvSearch.url({}),
54
54
  method: api_services_1.Endpoints.CustomAdvSearch.method,
55
- params: Object.assign(Object.assign({}, (position && { position: position })), (categoriesId && { categories: `[${categoriesId.toString()}]` })),
55
+ params: Object.assign(Object.assign({}, (position && { position: position })), { categories: categoriesId ? `[${categoriesId.toString()}]` : '[]' }),
56
56
  })
57
57
  .then((res) => {
58
58
  if (res.status >= 300) {
@@ -47,9 +47,9 @@ export default function useSCFetchCustomAdv({ id = null, position = null, catego
47
47
  }
48
48
  return http
49
49
  .request({
50
- url: Endpoints.CustomAdvSearch.url(),
50
+ url: Endpoints.CustomAdvSearch.url({}),
51
51
  method: Endpoints.CustomAdvSearch.method,
52
- params: Object.assign(Object.assign({}, (position && { position: position })), (categoriesId && { categories: `[${categoriesId.toString()}]` })),
52
+ params: Object.assign(Object.assign({}, (position && { position: position })), { categories: categoriesId ? `[${categoriesId.toString()}]` : '[]' }),
53
53
  })
54
54
  .then((res) => {
55
55
  if (res.status >= 300) {