io-sanita-theme 2.31.0 → 2.31.1

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,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.31.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.31.0...2.31.1) (2026-05-29)
4
+
5
+ ### Bug Fixes
6
+
7
+ * gelocation edge cases ([#146](https://github.com/RedTurtle/io-sanita-theme/issues/146)) ([0ec2a50](https://github.com/RedTurtle/io-sanita-theme/commit/0ec2a509ba4098cdce3932145a11c4596313ddec))
8
+
3
9
  ## [2.31.0](https://github.com/RedTurtle/io-sanita-theme/compare/2.30.2...2.31.0) (2026-05-28)
4
10
 
5
11
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "io-sanita-theme",
3
- "version": "2.31.0",
3
+ "version": "2.31.1",
4
4
  "description": "io-sanita-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "license": "MIT",
@@ -36,7 +36,12 @@ export const getItemIcon = (item) => {
36
36
  };
37
37
 
38
38
  export const hasGeolocation = (item) => {
39
- if (item?.geolocation?.latitude !== 0 && item?.geolocation?.longitude !== 0) {
39
+ if (
40
+ item &&
41
+ item.geolocation &&
42
+ item?.geolocation?.latitude !== 0 &&
43
+ item?.geolocation?.longitude !== 0
44
+ ) {
40
45
  return true;
41
- }
46
+ }
42
47
  };