Fix ability to discard upload
This commit is contained in:
parent
322be2fe40
commit
ac65129ba6
1 changed files with 2 additions and 1 deletions
|
|
@ -396,10 +396,11 @@ const handleDiscard = async () => {
|
|||
isSubmitting.value = true;
|
||||
try {
|
||||
const response = await fetch(`/api/upload/${props.id}/discard`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({}),
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
method: "POST",
|
||||
});
|
||||
|
||||
if (!response.ok) throw new Error("Failed to discard upload");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue