mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 10:03:45 +03:00
parent
bba40cd34a
commit
e77df0ca07
|
@ -52,7 +52,14 @@ export class StoreBuilder extends Component<StoreBuilderProps, StoreBuilderState
|
|||
if (!spec) {
|
||||
return undefined;
|
||||
}
|
||||
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