{
if (confirm('Do you really want to delete this Question?')) {
selected_question = selected_question - 1;
data.questions.splice(index, 1);
data.questions = data.questions;
}
}}
on:click={() => {
setSelectedQuestion(index);
}}
bind:this={arr_of_cards[index]}
>
{#if question.question === ''}
No title...
{:else}
{question.question}
{/if}
{#if question.image}

`,
allowHTML: true
}}
/>
{/if}
{#each question.answers as answer}
{#if answer.answer === ''}
Empty...
{:else}
{answer.answer}
{/if}
{/each}