gatsby-matrix-theme 52.0.40 → 52.0.42

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [52.0.42](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.41...v52.0.42) (2024-12-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update version ([c6f525b](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/c6f525bec52f4e89ddf965ebcb34de1924968c4e))
7
+
8
+ ## [52.0.41](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.40...v52.0.41) (2024-12-03)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update version ([83c5cbb](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/83c5cbb6fe6aefac54d4f577a0de4eea09a3b607))
14
+
1
15
  ## [52.0.40](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v52.0.39...v52.0.40) (2024-12-03)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "52.0.40",
3
+ "version": "52.0.42",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@react-icons/all-files": "^4.1.0",
27
27
  "gatsby": "^5.11.0",
28
- "gatsby-core-theme": "41.1.2",
28
+ "gatsby-core-theme": "41.1.4",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-transformer-sharp": "^5.11.0",
31
31
  "gatsby-plugin-sitemap": "^6.13.1",
@@ -212,7 +212,7 @@ export async function getAPIData(page, url, header, preview) {
212
212
  ].filter(item => item && !Array.isArray(item));
213
213
 
214
214
  // eslint-disable-next-line no-underscore-dangle
215
- reorderedResultData[0] = await getResultsById(reorderedResultData[0]._id);
215
+ reorderedResultData[0] = reorderedResultData[0] ? await getResultsById(reorderedResultData[0]._id) : {};
216
216
 
217
217
  return { [moduleName]: reorderedResultData };
218
218
 
@@ -33,7 +33,8 @@ const Tabs = ({
33
33
 
34
34
  const [activeTab, setActiveTab] = useState(() => {
35
35
  const validIndex = children.findIndex(child => child.key !== null);
36
- return showAll ? showAllTabId : `${children[activeIndex || validIndex].props.label}_${activeIndex || validIndex}`;
36
+
37
+ return showAll || children.length === 0 ? showAllTabId : `${children[activeIndex || validIndex].props.label}_${activeIndex || validIndex}`;
37
38
  });
38
39
 
39
40
  const showTitle = module?.name === 'top_list' && (module?.title || module?.module_title);