gatsby-core-theme 5.0.1 → 5.0.2
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 +11 -0
- package/package.json +1 -1
- package/src/helpers/getters.js +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## [5.0.2](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v5.0.1...v5.0.2) (2022-03-03)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* disabled lighthouse ([cb06eaf](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/cb06eaf1cd70de80cfc4eabc17bea8effde1d4d3))
|
|
7
|
+
* tracker link default to main if toplist custom tracker name not exist ([8f9b25f](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/8f9b25f284d779f57e53edb05533feec78d71207))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
* Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([591ffa4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/591ffa4a83cfc72d3dd11bb9b453b0296fe6d792))
|
|
11
|
+
|
|
1
12
|
## [5.0.1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v5.0.0...v5.0.1) (2022-03-02)
|
|
2
13
|
|
|
3
14
|
|
package/package.json
CHANGED
package/src/helpers/getters.js
CHANGED
|
@@ -152,6 +152,11 @@ export function prettyTracker(operator, trackerType = 'main') {
|
|
|
152
152
|
return null;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
// if tracker is not main, check if the tracker exists, if not use main
|
|
156
|
+
if (trackerType !== 'main' && operator.links[trackerType] === undefined) {
|
|
157
|
+
trackerType = 'main';
|
|
158
|
+
}
|
|
159
|
+
|
|
155
160
|
return generateTrackerLink(operator, trackerType);
|
|
156
161
|
}
|
|
157
162
|
|