fix(core): update

This commit is contained in:
2021-09-27 13:30:02 +02:00
parent 5639c152a2
commit b546d1a2c5
4 changed files with 19565 additions and 3498 deletions

View File

@ -4,7 +4,7 @@ import {
html,
customElement,
TemplateResult,
internalProperty,
state,
} from 'lit-element';
import { WccDashboard } from './wcc-dashboard';
@ -36,7 +36,7 @@ export class WccProperties extends LitElement {
@property()
public warning: string = null;
@internalProperty()
@state()
propertyContent: TemplateResult[] = [];
public render(): TemplateResult {
@ -258,7 +258,7 @@ export class WccProperties extends LitElement {
: 'Object';
}
};
if (this.selectedItem && !(this.selectedItem instanceof TemplateResult)) {
if (this.selectedItem && !((this.selectedItem as any)._classProperties)) {
const anonItem: any = this.selectedItem;
if (!anonItem._classProperties) {
return html`You have selected a page!`;