Reset editor on class change while new one loads (#2461)

Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
Denis Bunakalya
2022-12-22 02:42:55 +07:00
committed by GitHub
parent 20bf706536
commit 074f417c81
@@ -76,6 +76,10 @@
query.unsubscribe()
}
$: if (_class) {
mainEditor = undefined
}
let keys: KeyedAttribute[] = []
let fieldEditors: { key: KeyedAttribute; editor: AnyComponent; category: AttributeCategory }[] = []