From 748edc9cc4b0c1e5a6d7e814a89536eff8832a3d Mon Sep 17 00:00:00 2001 From: dbroqua Date: Fri, 28 Oct 2022 21:55:31 +0200 Subject: [PATCH] #63 - Suppression d'un album --- views/pages/mon-compte/ma-collection/details.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");