fix: add override modifier to ErrorBoundary.render()
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
cc0c8523a2
commit
4dd60fc867
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue