fix: fix unused 'action' property in ErrorBoundary
This commit is contained in:
1 parent
79a25ff5d3
commit
e1e0a8d3e7
1 file changed
+4
-1
@@ -39,7 +39,10 @@ class ErrorBoundary extends React.Component {
|
||||
}
|
||||
|
||||
// report every error in the console
|
||||
log.error(`Unhandled Error: ${error.stack}\nComponent stack: ${errorInfo.componentStack}`);
|
||||
log.error([
|
||||
`Unhandled Error with action='${this.props.action}': ${error.stack}`,
|
||||
`Component stack: ${errorInfo.componentStack}`
|
||||
].join('\n'));
|
||||
}
|
||||
|
||||
handleBack () {
|
||||
|
||||
Reference in new issue
Block a user