gatsby-core-theme 44.0.27 → 44.0.28
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,11 @@
|
|
|
1
|
+
## [44.0.28](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.0.27...v44.0.28) (2025-04-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* sports relation kit bug ([de7f998](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/de7f998a91f2583548026d56325ab23fc834302c))
|
|
7
|
+
* sports relation kit bug ([53bcd9c](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/53bcd9c324355e1f3f0f570f526df44c4601e404))
|
|
8
|
+
|
|
1
9
|
## [44.0.27](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.0.26...v44.0.27) (2025-04-24)
|
|
2
10
|
|
|
3
11
|
|
package/package.json
CHANGED
|
@@ -187,14 +187,16 @@ export const processSportsRelations = (
|
|
|
187
187
|
|
|
188
188
|
// Optimization 2: Convert teams and team_kits to Maps if used frequently
|
|
189
189
|
const teamsMap = new Map(Object.entries(teams));
|
|
190
|
+
|
|
190
191
|
const teamKitsMap = new Map(
|
|
191
192
|
Object.entries(data.relations.sports_data.team_kits)
|
|
192
193
|
);
|
|
193
194
|
|
|
194
195
|
if (tournament && tournament.teams) {
|
|
195
196
|
tournament.teams.forEach((teamId) => {
|
|
196
|
-
|
|
197
|
-
const
|
|
197
|
+
|
|
198
|
+
const team = teamsMap.get(teamId.toString());
|
|
199
|
+
const kit = team?.livegoals_v2_id ? teamKitsMap.get(team?.livegoals_v2_id.toString()) : null;
|
|
198
200
|
|
|
199
201
|
if (team && kit) {
|
|
200
202
|
teamKits[team.livegoals_v2_id] = kit; // Shallow copy might be enough
|