Skip to content

Commit

Permalink
add state one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
stephmilovic committed Mar 18, 2020
1 parent 98f71a6 commit 36a7570
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions x-pack/legacy/plugins/siem/public/utils/route/spy_routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,28 @@ export const SpyRouteComponent = memo<SpyRouteProps & { location: H.Location }>(
dispatch({
type: 'updateRouteWithOutSearch',
route: {
pageName,
detailName,
tabName,
pathName: pathname,
history,
flowTarget,
history,
pageName,
pathName: pathname,
state,
tabName,
},
});
setIsInitializing(false);
} else {
dispatch({
type: 'updateRoute',
route: {
pageName,
detailName,
tabName,
flowTarget,
history,
pageName,
pathName: pathname,
search,
state,
pathName: pathname,
history,
flowTarget,
tabName,
},
});
}
Expand All @@ -68,14 +69,14 @@ export const SpyRouteComponent = memo<SpyRouteProps & { location: H.Location }>(
dispatch({
type: 'updateRoute',
route: {
pageName,
detailName,
tabName,
search,
pathName: pathname,
history,
flowTarget,
history,
pageName,
pathName: pathname,
search,
state,
tabName,
},
});
}
Expand Down

0 comments on commit 36a7570

Please sign in to comment.