Don't show error screen for runtimes after render finished

This commit is contained in:
Roman Hotsiy 2016-12-02 11:48:50 +02:00
parent 1855d2bd38
commit cc4688fd5d
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -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;