mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
Handle React exception when a function is provided (#5016)
This commit is contained in:
parent
217f41b586
commit
a7edbf1e8d
@ -44,6 +44,9 @@ export default class ErrorBoundary extends React.Component {
|
||||
handleError = error => {
|
||||
this.setState(this.constructor.getDerivedStateFromError(error));
|
||||
this.componentDidCatch(error, null);
|
||||
if (isFunction(window.handleException)) {
|
||||
window.handleException(error);
|
||||
}
|
||||
};
|
||||
|
||||
reset = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user