Correctly pass custom title into ResettingErrorBoundary

Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
Julius Volz 2024-09-03 16:07:04 +02:00
parent 857e59c8b6
commit eb175c88f6

View file

@ -49,7 +49,9 @@ class ErrorBoundary extends Component<Props, State> {
const ResettingErrorBoundary = (props: Props) => {
const location = useLocation();
return (
<ErrorBoundary key={location.pathname}>{props.children}</ErrorBoundary>
<ErrorBoundary key={location.pathname} title={props.title}>
{props.children}
</ErrorBoundary>
);
};