We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ebc3bd commit 75b8f32Copy full SHA for 75b8f32
src/routes/conversation/[id]/+page.svelte
@@ -295,6 +295,8 @@
295
}
296
297
async function deletePdf() {
298
+ pdfUpload = undefined;
299
+
300
const res = await fetch(`${base}/conversation/${$page.params.id}/upload-pdf`, {
301
method: "DELETE",
302
});
@@ -303,8 +305,6 @@
303
305
error.set("Error while deleting PDF, try again.");
304
306
console.error("Error while deleting PDF: " + (await res.text()));
307
-
- pdfUpload = undefined;
308
309
310
onMount(async () => {
0 commit comments