diff --git a/superset-frontend/src/components/ErrorBoundary/index.tsx b/superset-frontend/src/components/ErrorBoundary/index.tsx index 137aa765ed529..948a93f4fdf6b 100644 --- a/superset-frontend/src/components/ErrorBoundary/index.tsx +++ b/superset-frontend/src/components/ErrorBoundary/index.tsx @@ -26,9 +26,14 @@ interface ErrorBoundaryProps { showMessage?: boolean; } +interface ErrorBoundaryState { + error: Error | null; + info: React.ErrorInfo | null; +} + export default class ErrorBoundary extends React.Component< ErrorBoundaryProps, - { error: Error | null; info: React.ErrorInfo | null } + ErrorBoundaryState > { static defaultProps = { onError: () => {},