mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 02:23:43 +03:00
Fix tests
This commit is contained in:
parent
7e4d56c405
commit
f723240145
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user