We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6cb588 commit 46d8debCopy full SHA for 46d8deb
src/config.ts
@@ -24,12 +24,12 @@ const typeTemplateMap: { [key: string]: string } = {
24
};
25
26
export class ConfigClass {
27
- file: { config: ConfigDefinition };
+ file: { config?: ConfigDefinition };
28
widgets: Array<WidgetDefinition> = [];
29
30
constructor(config_object: object) {
31
this.file = config_object as { config: ConfigDefinition };
32
- this.widgets = this.file.config.widgets;
+ this.widgets = this.file.config?.widgets || [];
33
}
34
35
public get_widgets_html() {
0 commit comments