mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
[Glitch] fix: Fix error caused by attempt to fetch non-existent quote
Port 9f94ddcd40 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -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]);
|
||||||
|
|||||||
Reference in New Issue
Block a user