dev: prevent error on live css reload when no session is loaded
This commit is contained in:
parent
1c2f683468
commit
bf97566730
1 changed files with 2 additions and 1 deletions
|
|
@ -70,7 +70,8 @@ var callbacks = module.exports = {
|
|||
})
|
||||
|
||||
setTimeout(()=>{
|
||||
widgetManager.getWidgetById('root')[0].reCreateWidget()
|
||||
var root = widgetManager.getWidgetById('root')[0]
|
||||
if (root) root.reCreateWidget()
|
||||
},100)
|
||||
|
||||
GRIDWIDTH = getComputedStyle(document.documentElement).getPropertyValue("--grid-width")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue