mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
fix image deletion. again.
This commit is contained in:
parent
7458f622f5
commit
27443bcd21
@ -201,7 +201,7 @@ document.addEventListener("alpine:init", () => {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async delete_picture() {
|
async delete_picture() {
|
||||||
const res = await fetch(`/api/sas/picture/${this.current_picture.id}/`, {
|
const res = await fetch(`/api/sas/picture/${this.current_picture.id}`, {
|
||||||
method: "DELETE",
|
method: "DELETE",
|
||||||
});
|
});
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
|
Loading…
Reference in New Issue
Block a user