mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 07:41:14 +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() {
|
||||
const res = await fetch(`/api/sas/picture/${this.current_picture.id}/`, {
|
||||
const res = await fetch(`/api/sas/picture/${this.current_picture.id}`, {
|
||||
method: "DELETE",
|
||||
});
|
||||
if (!res.ok) {
|
||||
|
Loading…
Reference in New Issue
Block a user