Skip to content

Commit b7d8645

Browse files
[Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (#164329)
Fixes: #164295 Fixes: #164190 ## Summary There was a Kibana crash when using back link buttons to go back to the policy details page from Trusted Apps / Event Filters / Host Isolation exceptions / Blocklists page. Route state can be null depending on the previous action so it has to be conditional. The error occurs when it tries to access the `backLink` prop on `routeState` when it's not defined. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit fb79e3e)
1 parent 5e65000 commit b7d8645

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x-pack/plugins/security_solution/public/management/pages/policy/view/policy_details.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const PolicyDetails = React.memo(() => {
6060
},
6161
],
6262
};
63-
}, [getAppUrl, routeState.backLink]);
63+
}, [getAppUrl, routeState?.backLink]);
6464

6565
const headerRightContent = (
6666
<AgentsSummary

0 commit comments

Comments
 (0)