mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-27 02:42:11 +00:00
Reset panel component while new one loads (#2693)
Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
parent
ad4d65a591
commit
3998ad4d55
@ -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
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user