utopia-ui 3.0.108 → 3.0.109
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/dist/Profile.cjs.js +2 -0
- package/dist/Profile.cjs.js.map +1 -1
- package/dist/Profile.esm.js +2 -0
- package/dist/Profile.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/Profile.cjs.js
CHANGED
@@ -816,6 +816,8 @@ function ProfileView({ attestationApi }) {
|
|
816
816
|
}, [item, items]);
|
817
817
|
React.useEffect(() => {
|
818
818
|
const setMap = (marker, x) => {
|
819
|
+
if (!marker || !marker.getElement())
|
820
|
+
return;
|
819
821
|
map.setView(new leaflet.LatLng(item?.position?.coordinates[1], item?.position?.coordinates[0] + x / 4), undefined);
|
820
822
|
requestAnimationFrame(() => {
|
821
823
|
try {
|