fix: non-showing hashtag charts (#1032)

pull/1034/head^2
Pavel 2023-01-13 00:19:20 +03:00 zatwierdzone przez GitHub
rodzic 63adaaf4f9
commit 839331ae67
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -19,11 +19,12 @@ const historyNum = $computed(() => {
})
const sparklineEl = $ref<SVGSVGElement>()
const sparklineFn = typeof sparkline !== 'function' ? (sparkline as any).default : sparkline
watch([$$(historyNum), $$(sparklineEl)], ([historyNum, sparklineEl]) => {
if (!sparklineEl)
return
sparkline(sparklineEl, historyNum)
sparklineFn(sparklineEl, historyNum)
})
</script>