A number of bugfixed on watching, which now works much better.

This commit is contained in:
Leo Vasanko
2023-11-07 20:15:09 +00:00
parent 4de2027959
commit 4c51029c9f
4 changed files with 25 additions and 14 deletions

View File

@@ -110,8 +110,9 @@ function handleUpdateMessage(updateData: { update: UpdateEntry[] }) {
delete node.dir[elem.name]
break // Deleted elements can't have further children
}
if (elem.name !== undefined) {
if (elem.name) {
// @ts-ignore
console.log(node, elem.name)
node = node.dir[elem.name] ||= {}
}
if (elem.key !== undefined) node.key = elem.key