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-21 22:42:55 +03:00 committed by GitHub
parent 20bf706536
commit 074f417c81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,10 @@
query.unsubscribe()
}
$: if (_class) {
mainEditor = undefined
}
let keys: KeyedAttribute[] = []
let fieldEditors: { key: KeyedAttribute; editor: AnyComponent; category: AttributeCategory }[] = []