mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ErrorHandling: Error boundary for every container (#18845)
* ErrorHandling: Error boundary for every container * Remvoe custom query editor errors
This commit is contained in:
@@ -8,11 +8,14 @@ import coreModule from 'app/core/core_module';
|
||||
import { store } from 'app/store/store';
|
||||
import { ContextSrv } from 'app/core/services/context_srv';
|
||||
import { provideTheme } from 'app/core/utils/ConfigProvider';
|
||||
import { ErrorBoundaryAlert } from '@grafana/ui';
|
||||
|
||||
function WrapInProvider(store: any, Component: any, props: any) {
|
||||
return (
|
||||
<Provider store={store}>
|
||||
<Component {...props} />
|
||||
<ErrorBoundaryAlert style="page">
|
||||
<Component {...props} />
|
||||
</ErrorBoundaryAlert>
|
||||
</Provider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user