From 45c5f21cc4f2316197db82cd4f509b37c624c14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Fri, 14 Feb 2025 15:42:19 +0100 Subject: [PATCH] fix: search shows 1 chord when there are 0 fixes #151 --- src/routes/(app)/config/chords/+page.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routes/(app)/config/chords/+page.svelte b/src/routes/(app)/config/chords/+page.svelte index 444f5fb9..555bd7d8 100644 --- a/src/routes/(app)/config/chords/+page.svelte +++ b/src/routes/(app)/config/chords/+page.svelte @@ -156,7 +156,7 @@ if (abort) return index; const chord = chords[i]!; - progress = i; + progress = i + 1; if ("phrase" in chord) { await index.addAsync(i, encodeChord(chord, osLayout, codes)); @@ -255,9 +255,9 @@
$searchIndex && search($searchIndex, event)} - class:loading={progress !== $chords.length - 1} + class:loading={progress !== $chords.length} />
{#if $lastPage !== -1}