gatsby-core-theme 41.1.21 → 41.1.22
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 +10 -0
- package/gatsby-node.mjs +2 -2
- package/package.json +1 -1
- package/src/helpers/processor/modules.mjs +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [41.1.22](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.21...v41.1.22) (2025-01-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add some small validation ([a988f4c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/a988f4cc0ebd187978e9bca21b4f2154591394a8))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
* Merge branch 'add-validation' into 'master' ([1ad46e8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/1ad46e84b2c75fe3c56f2a51d0b35f2bd1efd434))
|
|
10
|
+
|
|
1
11
|
## [41.1.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v41.1.20...v41.1.21) (2025-01-15)
|
|
2
12
|
|
|
3
13
|
|
package/gatsby-node.mjs
CHANGED
|
@@ -512,10 +512,10 @@ export const sourceNodes = async ({
|
|
|
512
512
|
|
|
513
513
|
let defaultMarket = null;
|
|
514
514
|
Object.entries(siteSettingsData.site_markets).forEach(([key, value]) => {
|
|
515
|
-
if (value.path_prefix === null) {
|
|
515
|
+
if (value.path_prefix === null || value.path_prefix === "") {
|
|
516
516
|
defaultMarket = key;
|
|
517
517
|
}
|
|
518
|
-
});
|
|
518
|
+
});
|
|
519
519
|
defaultLanguage = defaultMarket.split("_")[1];
|
|
520
520
|
translationsData = await getTranslations(process.env.GATSBY_SITE_NAME, keys);
|
|
521
521
|
|
package/package.json
CHANGED
|
@@ -351,9 +351,7 @@ export function processTopListModule(
|
|
|
351
351
|
const operatorPage =
|
|
352
352
|
pages && pages.operator && operatorRelation
|
|
353
353
|
? pages.operator.filter(
|
|
354
|
-
(page) =>
|
|
355
|
-
page.relation.operator_id === operatorRelation.operator_id
|
|
356
|
-
)
|
|
354
|
+
(page) => page.relation && page.relation.operator_id === operatorRelation.operator_id)
|
|
357
355
|
: [];
|
|
358
356
|
|
|
359
357
|
const reviewLink =
|