@znap/components-vue2 1.0.7 → 1.0.8

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.
package/dist/index.umd.js CHANGED
@@ -49240,13 +49240,13 @@ class CrudViewConfigs {
49240
49240
  const primaryFiltersPromises = filters?.primary.flatMap(async (filter, index) => {
49241
49241
  if (!filter.endpoint?.length || !filter.endpoint[0]) return [index, null];
49242
49242
  filter.props.loading = true;
49243
- const response = await httpFetcher.post(`${filter.endpoint[0]}`, filter.conditions);
49243
+ const response = await httpFetcher.post(filter.endpoint[0], filter.endpoint[1] ?? {});
49244
49244
  return [index, response?.data];
49245
49245
  }) ?? [];
49246
49246
  const secondaryFiltersPromises = filters?.secondary?.flatMap(async (filter, index) => {
49247
49247
  if (!filter.endpoint?.length || !filter.endpoint[0]) return [index, null];
49248
49248
  filter.props.loading = true;
49249
- const response = await httpFetcher.post(`${filter.endpoint[0]}`, filter.conditions);
49249
+ const response = await httpFetcher.post(filter.endpoint[0], filter.endpoint[1] ?? {});
49250
49250
  return [index, response?.data];
49251
49251
  }) ?? [];
49252
49252
  const [primaryFiltersData, secondaryFiltersData] = await Promise.all([Promise.all(primaryFiltersPromises), Promise.all(secondaryFiltersPromises)]);