Fix tests

This commit is contained in:
Roman Hotsiy 2016-02-07 16:59:41 +02:00
parent 7e4d56c405
commit f723240145

View File

@ -144,10 +144,10 @@ export default class JsonSchema extends BaseComponent {
ngAfterViewInit() {
// adjust widht only on parent level
let el = this.element.parentElement;
while(el.tagName !== 'JSON-SCHEMA' && el.tagName !== 'REDOC') {
while(el && el.tagName !== 'JSON-SCHEMA' && el.tagName !== 'REDOC') {
el = el.parentElement;
}
if (el.tagName === 'REDOC' ) {
if (el && el.tagName === 'REDOC' ) {
this.adjustNameColumnWidth();
}
}