mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 08:36:33 +03:00
parent
bba40cd34a
commit
e77df0ca07
|
@ -52,7 +52,14 @@ export class StoreBuilder extends Component<StoreBuilderProps, StoreBuilderState
|
|||
if (!spec) {
|
||||
return undefined;
|
||||
}
|
||||
return new AppStore(spec, specUrl, options);
|
||||
try {
|
||||
return new AppStore(spec, specUrl, options);
|
||||
} catch (e) {
|
||||
if (this.props.onLoaded) {
|
||||
this.props.onLoaded(e);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user