Skip to content

Commit

Permalink
#793 fix error boundary prevstate
Browse files Browse the repository at this point in the history
  • Loading branch information
D-GopalKrishna committed Dec 25, 2023
1 parent 071f56e commit 85a7e0f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class OSBErrorBoundary extends React.Component<OSBErrorBoundaryProps, OwnState>
if (nextProps.error) {
return { ...prevState, hasError: 'true', message: nextProps.error };
}
return null;
return { ...prevState };
}

render() {
Expand Down

0 comments on commit 85a7e0f

Please sign in to comment.