mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04: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
1 changed files with 3 additions and 1 deletions
|
|
@ -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