check whether element is undefined (#14981)

This commit is contained in:
Alan Ren
2021-04-05 15:35:39 -07:00
committed by GitHub
parent 0a7719b475
commit d8b2df5dbc

View File

@@ -184,6 +184,6 @@ export class ExplorerWidget extends DashboardWidget implements IDashboardWidget,
}
public getTableHeight(): string {
return `calc(100% - ${this._input.height}px)`;
return this._input ? `calc(100% - ${this._input.height}px)` : '100%';
}
}