mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -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 location = useLocation();
|
||||
return (
|
||||
<ErrorBoundary key={location.pathname}>{props.children}</ErrorBoundary>
|
||||
<ErrorBoundary key={location.pathname} title={props.title}>
|
||||
{props.children}
|
||||
</ErrorBoundary>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue