utopia-ui 3.0.109 → 3.0.110

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.
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var reactRouterDom = require('react-router-dom');
6
6
  var reactToastify = require('react-toastify');
7
- var TagView = require('./TagView-N0Ody3tW.js');
7
+ var TagView = require('./TagView-CMB4TDak.js');
8
8
  var leaflet = require('leaflet');
9
9
  var axios = require('axios');
10
10
  require('react-inlinesvg');
@@ -816,17 +816,10 @@ function ProfileView({ attestationApi }) {
816
816
  }, [item, items]);
817
817
  React.useEffect(() => {
818
818
  const setMap = (marker, x) => {
819
- if (!marker || !marker.getElement())
820
- return;
821
819
  map.setView(new leaflet.LatLng(item?.position?.coordinates[1], item?.position?.coordinates[0] + x / 4), undefined);
822
- requestAnimationFrame(() => {
823
- try {
824
- marker.openPopup();
825
- }
826
- catch (error) {
827
- console.warn('Could not open popup:', error);
828
- }
829
- });
820
+ setTimeout(() => {
821
+ marker.openPopup();
822
+ }, 500);
830
823
  };
831
824
  if (item) {
832
825
  if (item.position) {