mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-09 08:08:12 -05:00
refactor: auto close manage slide on media delete (#877)
* refactor: auto close manage slide on media delete re #841 * fix: close manage slide-over when removing media item from *arr --------- Co-authored-by: JoaquinOlivero <joaquin.olivero@hotmail.com>
This commit is contained in:
@@ -117,6 +117,7 @@ const ManageSlideOver = ({
|
|||||||
});
|
});
|
||||||
if (!res.ok) throw new Error();
|
if (!res.ok) throw new Error();
|
||||||
revalidate();
|
revalidate();
|
||||||
|
onClose();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -133,6 +134,7 @@ const ManageSlideOver = ({
|
|||||||
if (!res2.ok) throw new Error();
|
if (!res2.ok) throw new Error();
|
||||||
|
|
||||||
revalidate();
|
revalidate();
|
||||||
|
onClose();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user