Fixed clear on import bug

ref #54
This commit is contained in:
Nicolai Ort 2021-02-20 16:31:30 +01:00
parent b337873ca2
commit 09d27c0b05

View File

@ -20,6 +20,7 @@
$: searchvalue = ""; $: searchvalue = "";
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
function cancelModal() { function cancelModal() {
json_output = [];
import_modal_open = false; import_modal_open = false;
dispatch("cancel"); dispatch("cancel");
} }
@ -347,7 +348,6 @@
</button> </button>
<button <button
on:click={() => { on:click={() => {
json_output = [];
cancelModal(); cancelModal();
}} }}
type="button" type="button"