Skip to content

Commit 75b8f32

Browse files
committed
chore
1 parent 6ebc3bd commit 75b8f32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/conversation/[id]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@
295295
}
296296
297297
async function deletePdf() {
298+
pdfUpload = undefined;
299+
298300
const res = await fetch(`${base}/conversation/${$page.params.id}/upload-pdf`, {
299301
method: "DELETE",
300302
});
@@ -303,8 +305,6 @@
303305
error.set("Error while deleting PDF, try again.");
304306
console.error("Error while deleting PDF: " + (await res.text()));
305307
}
306-
307-
pdfUpload = undefined;
308308
}
309309
310310
onMount(async () => {

0 commit comments

Comments
 (0)