Skip to content

Commit

Permalink
Remove Container Workload Protection link from Assets page
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoblaz committed Nov 20, 2024
1 parent 771c139 commit 7116334
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,7 @@ export const createAssetsLinkFromManage = (manageLink: LinkItem): LinkItem => {
assetsSubLinks.push({ ...endpointsLink, links: endpointsSubLinks });
}

const cloudPoliciesLink = manageLink.links?.find(
({ id }) => id === SecurityPageName.cloudDefendPolicies
);
if (cloudPoliciesLink) {
// Add cloud defend policies link as cloud defend sub link
assetsSubLinks.push({ ...assetsCloudDefendAppLink, links: [cloudPoliciesLink] });
}
assetsSubLinks.push({ ...assetsCloudDefendAppLink, links: [] });

return {
...assetsAppLink,
Expand Down

0 comments on commit 7116334

Please sign in to comment.