viewlet reset

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-06 19:02:39 +02:00
parent 34cecc90e1
commit 78c13683f1
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -42,6 +42,12 @@ async function getViewlets(client: Connection, _class: Ref<Class<Obj>>): Promise
let selected = 0
function onSpace(space: Ref<Space>) {
selected = 0
}
$: onSpace(space)
</script>
{#await getViewlets(client, _class)}