fix(core): update

This commit is contained in:
Philipp Kunz 2022-03-24 17:08:25 +01:00
parent 342ac96429
commit 5876225b39

View File

@ -99,8 +99,10 @@ export class WccDashboard extends DeesElement {
></wcc-properties>
<wcc-frame id="wccFrame" viewport=${this.selectedViewport}>
${(() => {
console.log('jojo');
if (this.selectedType === 'page' && this.selectedItem) {
if (typeof this.selectedItem === 'function') {
console.log('jojo page')
return this.selectedItem();
} else {
console.error('The selected item looks strange:');