ErrorHandling: Error boundary for every container (#18845)

* ErrorHandling: Error boundary for every container

* Remvoe custom query editor errors
This commit is contained in:
Torkel Ödegaard
2019-09-04 13:59:30 +02:00
committed by GitHub
parent b0237c6b7e
commit 490a1d6fc9
8 changed files with 57 additions and 64 deletions

View File

@@ -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>
);
}