mirror of
https://github.com/seerr-team/seerr.git
synced 2026-07-30 09:37:05 -04:00
fix(ui): revalidate request list after approving or declining a request (#3283)
Co-authored-by: aaamoeder <aaamoeder@users.noreply.github.com>
This commit is contained in:
@@ -333,6 +333,7 @@ const RequestItem = ({ request, revalidateList }: RequestItemProps) => {
|
||||
try {
|
||||
await axios.post(`/api/v1/request/${request.id}/${type}`);
|
||||
revalidate();
|
||||
revalidateList();
|
||||
mutate('/api/v1/request/count');
|
||||
} catch {
|
||||
addToast(intl.formatMessage(messages.failedmodify), {
|
||||
|
||||
Reference in New Issue
Block a user