sforkowany z mirror/soapbox
StatusHoverCard: fix useEffect conditional
rodzic
f1f6892d92
commit
c78e398dad
|
@ -30,7 +30,7 @@ export const StatusHoverCard: React.FC<IStatusHoverCard> = ({ visible = true })
|
|||
const targetRef = useAppSelector(state => state.status_hover_card.ref?.current);
|
||||
|
||||
useEffect(() => {
|
||||
if (!status) {
|
||||
if (statusId && !status) {
|
||||
dispatch(fetchStatus(statusId));
|
||||
}
|
||||
}, [statusId, status]);
|
||||
|
|
Ładowanie…
Reference in New Issue