itube-specs 0.0.1010 → 0.0.1011

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.1010",
4
+ "version": "0.0.1011",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -7,7 +7,7 @@
7
7
 
8
8
  <InfoMain
9
9
  v-if="categoryInfoResult && isFirstPage"
10
- :key="`info-${categoryInfo?.header}`"
10
+ :key="`info-${categoryInfoResult.title}`"
11
11
  :card="categoryInfoResult"
12
12
  type="category"
13
13
  class="category__info"
@@ -121,7 +121,7 @@ const modelsRoundCards = computed(() =>
121
121
  );
122
122
 
123
123
  const categoryInfoResult = computed(() => ({
124
- title: categoryInfo.value?.header,
124
+ title: categoryInfo.value?.header || categoryInfo.value?.title,
125
125
  description: categoryInfo.value?.description,
126
126
  videosCount: categoryInfo.value?.videosCount,
127
127
  guid: categoryInfo.value?.guid,
@@ -137,7 +137,7 @@ const relatedSearch = computed(() => relatedSearchRaw.value?.items?.map(item =>
137
137
  const relatedCategories = computed(() => categoryInfo.value?.related);
138
138
 
139
139
  const title = computed(() => categoryInfo.value?.title || '');
140
- const metaTitle = computed(() => categoryInfo.value?.metaTitle || '');
140
+ const metaTitle = computed(() => categoryInfo.value?.metaTitle || title.value);
141
141
  const pageNumber = computed(() => route.query?.[ 'page' ] ? Number(route.query[ 'page' ]) : 1);
142
142
  const pageText = computed(() => unref(pageNumber) === 1 ? '' : ` ${t('page')} ${unref(pageNumber)}`);
143
143