Version 1.4.3 #83
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@
|
||||||
deleteItem() {
|
deleteItem() {
|
||||||
axios.delete(`/api/v1/albums/${this.item._id}`)
|
axios.delete(`/api/v1/albums/${this.item._id}`)
|
||||||
.then( () => {
|
.then( () => {
|
||||||
return locatiom.href = "/ma-collection";
|
window.location.href = "/ma-collection";
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
showToastr(err.response?.data?.message || "Impossible de supprimer cet album");
|
showToastr(err.response?.data?.message || "Impossible de supprimer cet album");
|
||||||
|
|
Loading…
Reference in a new issue