[Glitch] fix: Fix error caused by attempt to fetch non-existent quote

Port 9f94ddcd402c0664961f3de77728ba9af9795176 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion 2025-06-12 15:29:55 +02:00 committed by Claire
parent 442401c47e
commit d5ba3aa6bd

View File

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