Skip to content

Commit

Permalink
adding ErrorBoundaryState
Browse files Browse the repository at this point in the history
  • Loading branch information
Damans227 committed Jan 15, 2022
1 parent 47090f6 commit b36ca8b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion superset-frontend/src/components/ErrorBoundary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: () => {},
Expand Down

0 comments on commit b36ca8b

Please sign in to comment.