Warnings Fixes

This commit is contained in:
2025-12-06 23:43:32 +00:00
parent 59d39c9939
commit 3848bc8ee3
3 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { untrack } from "svelte";
import Icon from "@iconify/svelte";
import { getButtonStyle, parseColorText, getSegmentStyle } from "./utils";
import { themeColors } from "$lib/stores/theme";
@@ -13,7 +14,9 @@
let { line, inline = false }: Props = $props();
let openItems = $state(new Set(line.accordionOpen ? [0] : []));
let openItems = $state(
new Set(untrack(() => line.accordionOpen) ? [0] : []),
);
function toggleItem(index: number) {
const newSet = new Set(openItems);