fix: fix remove from *arr in item details (#1387)

Fix the "Remove From *arr" button in the slideover of the movie/series details page. The issue was
caused by an attempt to delete a file that didn't exist.
This commit is contained in:
Gauthier
2025-02-22 17:18:27 +01:00
committed by GitHub
parent b1f07f0eb2
commit 9712f56054
2 changed files with 4 additions and 5 deletions

View File

@@ -348,6 +348,7 @@ const RequestItem = ({ request, revalidateList }: RequestItemProps) => {
const deleteMediaFile = async () => {
if (request.media) {
// we don't check if the response is ok here because there may be no file to delete
await fetch(`/api/v1/media/${request.media.id}/file`, {
method: 'DELETE',
});