diff --git a/src/lib/components/documents/AddDocModal.svelte b/src/lib/components/documents/AddDocModal.svelte index 922996fdf..549d76593 100644 --- a/src/lib/components/documents/AddDocModal.svelte +++ b/src/lib/components/documents/AddDocModal.svelte @@ -15,7 +15,7 @@ export let show = false; export let selectedDoc; - + let uploadDocInputElement: HTMLInputElement; let inputFiles; let tags = []; @@ -69,7 +69,7 @@ } inputFiles = null; - document.getElementById('upload-doc-input').value = ''; + uploadDocInputElement.value = ''; } else { toast.error(`File not found.`); } @@ -126,14 +126,19 @@ }} >
- +