fix: thousands of function calls per seonc
This commit is contained in:
1 parent
732453b17f
commit
cccfcf8aa2
1 file changed
+8
-3
@@ -100,15 +100,20 @@
|
||||
|
||||
let displayTitle = title
|
||||
|
||||
$: {
|
||||
if (title && tags.length == 0) {
|
||||
const update = () => {
|
||||
if (tags.length == 0) {
|
||||
const result = parseTags(title)
|
||||
tags = result.tags
|
||||
console.log('changed display title')
|
||||
displayTitle = result.title
|
||||
}
|
||||
}
|
||||
|
||||
$: {
|
||||
if (title) {
|
||||
update()
|
||||
}
|
||||
}
|
||||
|
||||
let popoverOpen = false
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user