generated from Luis/nextjs-python-web-template
Fixed unused var error
This commit is contained in:
@@ -16,7 +16,7 @@ class ErrorBoundary extends React.Component<Props, State> {
|
|||||||
this.state = { hasError: false };
|
this.state = { hasError: false };
|
||||||
}
|
}
|
||||||
static getDerivedStateFromError(error: Error): State {
|
static getDerivedStateFromError(error: Error): State {
|
||||||
// eslint-disable-line
|
console.error(error);
|
||||||
// Update state so the next render will show the fallback UI
|
// Update state so the next render will show the fallback UI
|
||||||
return { hasError: true };
|
return { hasError: true };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user