gatsby-core-theme 44.2.7 → 44.2.9
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,18 @@
|
|
|
1
|
+
## [44.2.9](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.2.8...v44.2.9) (2025-06-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* sports theme build fail ([c8ec05b](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/c8ec05ba3b5dd4bafc6e2f198c965aa11fc7c29a))
|
|
7
|
+
|
|
8
|
+
## [44.2.8](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.2.7...v44.2.8) (2025-06-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add validation ([0953152](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/09531524240dcf834cec23fd0d1538fc9a3de4cf))
|
|
14
|
+
* added bonus page type to sports data ([2ec5dac](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/2ec5dac1c058d4d98aafa35a2012ff8f84a4910f))
|
|
15
|
+
|
|
1
16
|
## [44.2.7](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.2.6...v44.2.7) (2025-06-16)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
package/src/resolver/common.mjs
CHANGED
|
@@ -171,7 +171,7 @@ export function removeUnwantedSections(obj, pageType, ribbonsData) {
|
|
|
171
171
|
]);
|
|
172
172
|
|
|
173
173
|
// Filter the object to retain only the sections in the sectionsToKeep set
|
|
174
|
-
const filteredObject = Object.keys(obj).reduce((acc, key) => {
|
|
174
|
+
const filteredObject = Object.keys(obj || {}).reduce((acc, key) => {
|
|
175
175
|
if (sectionsToKeep.has(key)) {
|
|
176
176
|
acc[key] = obj[key];
|
|
177
177
|
|
|
@@ -31,12 +31,12 @@ export const processRelations = (
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
// Add path for software and license
|
|
34
|
-
if(page.relation_type === "operator" && (process.env.ENABLE_PATH_SOFTWARE_AND_LICENSE === 'true')) {
|
|
34
|
+
if(page.relation_type === "operator" && (process.env.ENABLE_PATH_SOFTWARE_AND_LICENSE === 'true')) {
|
|
35
35
|
// Software
|
|
36
36
|
transformedPages[market][page.relation_type][
|
|
37
37
|
index
|
|
38
38
|
]?.relation?.software?.forEach(software => {
|
|
39
|
-
const mappedSoftware = transformedPages[market]
|
|
39
|
+
const mappedSoftware = transformedPages[market]?.software_provide?.filter(pr => pr.relation_id === software.id)[0];
|
|
40
40
|
mappedSoftware && (software.path = mappedSoftware.path);
|
|
41
41
|
});
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@ export const processRelations = (
|
|
|
44
44
|
transformedPages[market][page.relation_type][
|
|
45
45
|
index
|
|
46
46
|
]?.relation?.license_objects?.forEach(license => {
|
|
47
|
-
const mappedLicense = transformedPages[market]
|
|
47
|
+
const mappedLicense = transformedPages[market]?.operators_license?.filter(l => l.relation_id === license.id)[0];
|
|
48
48
|
mappedLicense && (license.path = mappedLicense.path);
|
|
49
49
|
});
|
|
50
50
|
}
|