mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
fix avatar disapeared when item is updated
This commit is contained in:
parent
dcf1908280
commit
2e8681f44c
@ -56,10 +56,6 @@ export function HeaderView({
|
|||||||
|
|
||||||
const [imageLoaded, setImageLoaded] = useState(false)
|
const [imageLoaded, setImageLoaded] = useState(false)
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
setImageLoaded(false)
|
|
||||||
}, [item])
|
|
||||||
|
|
||||||
const avatar =
|
const avatar =
|
||||||
item.image &&
|
item.image &&
|
||||||
appState.assetsApi.url + item.image + `${big ? '?width=160&heigth=160' : '?width=80&heigth=80'}`
|
appState.assetsApi.url + item.image + `${big ? '?width=160&heigth=160' : '?width=80&heigth=80'}`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user