Skip to content

Commit

Permalink
refactor: auto close manage slide on media delete (#877)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
JoaquinOlivero and JoaquinOlivero authored Jul 21, 2024
1 parent 3a363ae commit 4db1df2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ManageSlideOver/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const ManageSlideOver = ({
});
if (!res.ok) throw new Error();
revalidate();
onClose();
}
};

Expand All @@ -133,6 +134,7 @@ const ManageSlideOver = ({
if (!res2.ok) throw new Error();

revalidate();
onClose();
}
};

Expand Down

0 comments on commit 4db1df2

Please sign in to comment.