Skip to content

Commit

Permalink
fix: view errors were not reported
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Mar 29, 2017
1 parent a9cad19 commit 6aa3a7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/components/Redoc/redoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ export class Redoc extends BaseComponent implements OnInit {
if (!spec) {
this.appState.startLoading();
} else {
this.specLoaded = true;
this.changeDetector.markForCheck();
this.changeDetector.detectChanges();
this.specLoaded = true;
setTimeout(() => {
this.hash.start();
});
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/custom-error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AppStateService } from '../services/app-state.service';
@Injectable()
export class CustomErrorHandler extends ErrorHandler {
constructor(private appState: AppStateService) {
super(true);
super();
}
handleError(error) {
this.appState.error.next(error && error.rejection || error);
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/spec-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export class SpecManager {
this._schema = snapshot(schema);
try {
this.init();
resolve(this._schema);
this.spec.next(this._schema);
resolve(this._schema);
} catch(err) {
reject(err);
}
Expand Down

0 comments on commit 6aa3a7d

Please sign in to comment.