StatusHoverCard: fix useEffect conditional
This commit is contained in:
parent
f1f6892d92
commit
c78e398dad
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue