fix: add override modifier to ErrorBoundary.render()

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
senke 2026-02-10 00:49:59 +01:00
parent cc0c8523a2
commit 4dd60fc867

View file

@ -28,7 +28,7 @@ export class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoun
this.props.onReset?.();
};
render() {
override render() {
if (this.state.hasError) {
if (this.props.fallback) return this.props.fallback;