From 2e8681f44cdbeaf8df2b905ecb49a0c9cd19968f Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Mon, 3 Mar 2025 17:55:57 +0000 Subject: [PATCH] fix avatar disapeared when item is updated --- .../Map/Subcomponents/ItemPopupComponents/HeaderView.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx b/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx index 835da429..1209afdb 100644 --- a/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx +++ b/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.tsx @@ -56,10 +56,6 @@ export function HeaderView({ const [imageLoaded, setImageLoaded] = useState(false) - useEffect(() => { - setImageLoaded(false) - }, [item]) - const avatar = item.image && appState.assetsApi.url + item.image + `${big ? '?width=160&heigth=160' : '?width=80&heigth=80'}`