chore: populate error boundry issue with relevant values (#3460)
This commit is contained in:
6
packages/netlify-cms-core/src/bootstrap.js
vendored
6
packages/netlify-cms-core/src/bootstrap.js
vendored
@ -18,10 +18,10 @@ import 'what-input';
|
||||
|
||||
const ROOT_ID = 'nc-root';
|
||||
|
||||
const TranslatedApp = ({ locale }) => {
|
||||
const TranslatedApp = ({ locale, config }) => {
|
||||
return (
|
||||
<I18n locale={locale} messages={getPhrases(locale)}>
|
||||
<ErrorBoundary showBackup>
|
||||
<ErrorBoundary showBackup config={config}>
|
||||
<ConnectedRouter history={history}>
|
||||
<Route component={App} />
|
||||
</ConnectedRouter>
|
||||
@ -31,7 +31,7 @@ const TranslatedApp = ({ locale }) => {
|
||||
};
|
||||
|
||||
const mapDispatchToProps = state => {
|
||||
return { locale: selectLocale(state.config) };
|
||||
return { locale: selectLocale(state.config), config: state.config };
|
||||
};
|
||||
|
||||
const ConnectedTranslatedApp = connect(mapDispatchToProps)(TranslatedApp);
|
||||
|
Reference in New Issue
Block a user