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.
@@ -796,6 +796,8 @@ function ProfileView({ attestationApi }) {
796
796
  }, [item, items]);
797
797
  useEffect(() => {
798
798
  const setMap = (marker, x) => {
799
+ if (!marker || !marker.getElement())
800
+ return;
799
801
  map.setView(new LatLng(item?.position?.coordinates[1], item?.position?.coordinates[0] + x / 4), undefined);
800
802
  requestAnimationFrame(() => {
801
803
  try {