fix: PlanProgress template syntax error — multi-statement inline expression
This commit is contained in:
@@ -38,6 +38,12 @@
|
|||||||
sheetSlug = targetSlug
|
sheetSlug = targetSlug
|
||||||
sheetOpen = true
|
sheetOpen = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function toggleGen(gen: number) {
|
||||||
|
if (openGens.has(gen)) openGens.delete(gen)
|
||||||
|
else openGens.add(gen)
|
||||||
|
openGens = new Set(openGens)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if total > 0}
|
{#if total > 0}
|
||||||
@@ -56,7 +62,7 @@
|
|||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="flex items-center gap-1 text-[10px] text-muted-foreground hover:text-foreground"
|
class="flex items-center gap-1 text-[10px] text-muted-foreground hover:text-foreground"
|
||||||
onclick={() => openGens.has(gen) ? openGens.delete(gen) : openGens.add(gen); openGens = new Set(openGens)}
|
onclick={() => toggleGen(gen)}
|
||||||
>
|
>
|
||||||
{#if openGens.has(gen) || isLatest}
|
{#if openGens.has(gen) || isLatest}
|
||||||
<ChevronDownIcon class="size-3" />
|
<ChevronDownIcon class="size-3" />
|
||||||
|
|||||||
Reference in New Issue
Block a user