mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-27 02:53:43 +03:00
Don't show error screen for runtimes after render finished
This commit is contained in:
parent
1855d2bd38
commit
cc4688fd5d
|
@ -109,16 +109,12 @@ export class Redoc extends BaseComponent implements OnInit {
|
|||
this.appState.error.subscribe(_err => {
|
||||
if (!_err) return;
|
||||
|
||||
if (this.specLoading) {
|
||||
this.specLoaded = true;
|
||||
this.hideLoadingAnimation();
|
||||
}
|
||||
this.appState.stopLoading();
|
||||
|
||||
if (this.loadingProgress === 100) return;
|
||||
this.error = _err;
|
||||
this.changeDetector.markForCheck();
|
||||
setTimeout(() => {
|
||||
this.changeDetector.detectChanges()
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
if (this.specUrl) {
|
||||
this.options.specUrl = this.specUrl;
|
||||
|
|
Loading…
Reference in New Issue
Block a user