diff --git a/src/lib/components/NoteDialog.svelte b/src/lib/components/NoteDialog.svelte index 63fb2f6d..9701ae23 100644 --- a/src/lib/components/NoteDialog.svelte +++ b/src/lib/components/NoteDialog.svelte @@ -15,12 +15,12 @@ $: heading = note?.reference ?? ''; - export async function showModal() { + export function showModal() { if (note !== undefined) { text = note.text; modal.showModal(); } else { - console.log('No note available!') + console.log('No note available!'); } } @@ -29,7 +29,7 @@ selectedVerses.reset(); } - async function onEditNote(){ + function onEditNote() { if (note !== undefined) goto(`${base}/notes/edit/${note.date}`); } @@ -38,18 +38,14 @@
-
+
{heading}
- +
- +
{#if text !== undefined} {#each text.split(/\r?\n/) as line} @@ -66,5 +62,3 @@
- - \ No newline at end of file