diff --git a/frontend/src/lib/editor/card.svelte b/frontend/src/lib/editor/card.svelte index 1eb30db..aa37d05 100644 --- a/frontend/src/lib/editor/card.svelte +++ b/frontend/src/lib/editor/card.svelte @@ -28,6 +28,7 @@ export let pow_salt: string; let uppyOpen = false; + let unique = {}; /*eslint no-unused-vars: ["error", { "argsIgnorePattern": "^_" }]*/ const correctTimeInput = (_) => { @@ -41,6 +42,7 @@ .toString() .slice(0, 3); } + unique = {}; }; $: correctTimeInput(data.questions[selected_question].time); /* @@ -75,22 +77,24 @@ {:else}
- {#await import('$lib/inline-editor.svelte')} - - {:then c} -
- -
- {/await} + {#key unique} + {#await import('$lib/inline-editor.svelte')} + + {:then c} +
+ +
+ {/await} + {/key}
{#if data.questions[selected_question].image != undefined && data.questions[selected_question].image !== ''}