Correctly pass custom title into ResettingErrorBoundary

Signed-off-by: Julius Volz <julius.volz@gmail.com>
pull/14872/head
Julius Volz 3 months ago
parent 857e59c8b6
commit eb175c88f6

@ -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>
);
};

Loading…
Cancel
Save