fix: fix unused 'action' property in ErrorBoundary

This commit is contained in:
Christopher Willis-Ford committed 2023-01-27 09:32:42 -08:00
1 parent 79a25ff5d3
commit e1e0a8d3e7
1 file changed
+4 -1
+4 -1
View File
@@ -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 () {