mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Correctly pass custom title into ResettingErrorBoundary
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
857e59c8b6
commit
eb175c88f6
|
@ -49,7 +49,9 @@ class ErrorBoundary extends Component<Props, State> {
|
||||||
const ResettingErrorBoundary = (props: Props) => {
|
const ResettingErrorBoundary = (props: Props) => {
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
return (
|
return (
|
||||||
<ErrorBoundary key={location.pathname}>{props.children}</ErrorBoundary>
|
<ErrorBoundary key={location.pathname} title={props.title}>
|
||||||
|
{props.children}
|
||||||
|
</ErrorBoundary>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue