itube-specs 0.0.295 → 0.0.297

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.
@@ -22,7 +22,7 @@
22
22
  <template v-for="(item, subIndex) in filters">
23
23
  <ClientOnly v-if="getRangeInfo(item.options)">
24
24
  <SSlider
25
- v-if="(item.kind === 'range') && (item.group.name === group?.name) && getRangeInfo(item.options)?.min !== getRangeInfo(item.options)?.max"
25
+ v-if="(item.kind === 'range') && (item.group.name === group?.name)"
26
26
  :min="getRangeInfo(item.options)?.min"
27
27
  :max="getRangeInfo(item.options)?.max"
28
28
  :step="getRangeInfo(item.options)?.step"
@@ -8,8 +8,6 @@ export const useFetchModels = async (
8
8
  ) => {
9
9
  const route = useRoute();
10
10
  const lang = useI18n().locale.value as ELanguage;
11
- const key = EAsyncData.Models;
12
- const stateKey = computed(() => `data-${key}-${JSON.stringify(route.query)}-${lang}`);
13
11
 
14
12
  const filters = computed(() => Object.entries(route.query)
15
13
  .filter(([key]) => key.startsWith('filter_'))
@@ -19,9 +17,9 @@ export const useFetchModels = async (
19
17
  })));
20
18
 
21
19
  const { data, status, refresh } = await useAsyncData<PaginatedResponse<IModelCard>>(
22
- key,
20
+ EAsyncData.Models,
23
21
  () => useApiFetcher<PaginatedResponse<IModelCard>>(
24
- stateKey.value,
22
+ EAsyncData.Models,
25
23
  apiMethod,
26
24
  lang,
27
25
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.295",
4
+ "version": "0.0.297",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {