diff --git a/views/pages/mon-compte/ma-collection/details.ejs b/views/pages/mon-compte/ma-collection/details.ejs index 41c0b24..da1e1a3 100644 --- a/views/pages/mon-compte/ma-collection/details.ejs +++ b/views/pages/mon-compte/ma-collection/details.ejs @@ -319,7 +319,7 @@ deleteItem() { axios.delete(`/api/v1/albums/${this.item._id}`) .then( () => { - return locatiom.href = "/ma-collection"; + window.location.href = "/ma-collection"; }) .catch((err) => { showToastr(err.response?.data?.message || "Impossible de supprimer cet album");