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