mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-17 02:10:39 +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 => {
|
this.appState.error.subscribe(_err => {
|
||||||
if (!_err) return;
|
if (!_err) return;
|
||||||
|
|
||||||
if (this.specLoading) {
|
this.appState.stopLoading();
|
||||||
this.specLoaded = true;
|
|
||||||
this.hideLoadingAnimation();
|
if (this.loadingProgress === 100) return;
|
||||||
}
|
|
||||||
this.error = _err;
|
this.error = _err;
|
||||||
this.changeDetector.markForCheck();
|
this.changeDetector.markForCheck();
|
||||||
setTimeout(() => {
|
});
|
||||||
this.changeDetector.detectChanges()
|
|
||||||
});
|
|
||||||
})
|
|
||||||
|
|
||||||
if (this.specUrl) {
|
if (this.specUrl) {
|
||||||
this.options.specUrl = this.specUrl;
|
this.options.specUrl = this.specUrl;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user