We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f364e74 commit 8399f0eCopy full SHA for 8399f0e
x-pack/plugins/ingest_manager/public/applications/ingest_manager/hooks/use_intra_app_state.tsx
@@ -29,7 +29,7 @@ export const IntraAppStateProvider = memo<{
29
const internalAppToAppState = useMemo<IntraAppState>(() => {
30
const intraAppState = kibanaScopedHistory.location.state as AnyIntraAppRouteState;
31
return {
32
- forRoute: intraAppState.baseRoute ? intraAppState.baseRoute : '',
+ forRoute: intraAppState && intraAppState.baseRoute ? intraAppState.baseRoute : '',
33
routeState: intraAppState,
34
};
35
}, [kibanaScopedHistory.location.state]);
0 commit comments