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.
@@ -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 {