only refresh items on home feed

This commit is contained in:
Hongbo Wu
2022-03-18 17:08:47 +08:00
parent 4c535147f1
commit 705ebffff3

View File

@ -206,9 +206,12 @@ export function HomeFeedContainer(props: HomeFeedContainerProps): JSX.Element {
if (activeCardId && !alreadyScrolled.current) {
scrollToActiveCard(activeCardId)
alreadyScrolled.current = true
}
if (activeItem) {
performActionOnItem('refresh', activeItem)
if (activeItem) {
console.log('refreshing')
// refresh items on home feed
performActionOnItem('refresh', activeItem)
}
}
}, [activeCardId, scrollToActiveCard])