Reset panel component while new one loads ()

Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
Denis Bunakalya 2023-02-28 21:46:12 +03:00 committed by GitHub
parent ad4d65a591
commit 3998ad4d55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@
direction: 'bottom'
}
let component: AnySvelteComponent
let component: AnySvelteComponent | undefined
let props: PanelProps | undefined
function _close () {
@ -53,6 +53,8 @@
$: props = $panelstore.panel
$: if (props !== undefined) {
component = undefined
getResource(props.component).then((r) => {
component = r
})