fix: Fix error caused by attempt to fetch non-existent quote (#35022)

This commit is contained in:
diondiondion 2025-06-12 15:29:55 +02:00 committed by GitHub
commit 9f94ddcd40
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -89,7 +89,7 @@ export const QuotedStatus: React.FC<{
); );
useEffect(() => { useEffect(() => {
if (!status) { if (!status && quotedStatusId) {
dispatch(fetchStatus(quotedStatusId)); dispatch(fetchStatus(quotedStatusId));
} }
}, [status, quotedStatusId, dispatch]); }, [status, quotedStatusId, dispatch]);