[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:
1 parent
442401c47e
commit
d5ba3aa6bd
1 file changed
+1
-1
@@ -89,7 +89,7 @@ export const QuotedStatus: React.FC<{
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if (!status) {
|
||||
if (!status && quotedStatusId) {
|
||||
dispatch(fetchStatus(quotedStatusId));
|
||||
}
|
||||
}, [status, quotedStatusId, dispatch]);
|
||||
|
||||
Reference in new issue
Block a user