fix: thousands of function calls per seonc

This commit is contained in:
Xylight committed 2024-10-20 13:28:34 -07:00
1 parent 732453b17f
commit cccfcf8aa2
1 file changed
+8 -3
@@ -100,15 +100,20 @@
let displayTitle = title let displayTitle = title
$: { const update = () => {
if (title && tags.length == 0) { if (tags.length == 0) {
const result = parseTags(title) const result = parseTags(title)
tags = result.tags tags = result.tags
console.log('changed display title')
displayTitle = result.title displayTitle = result.title
} }
} }
$: {
if (title) {
update()
}
}
let popoverOpen = false let popoverOpen = false
</script> </script>