Skip to content

Commit

Permalink
address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaElastic committed Jul 3, 2024
1 parent 174d84d commit 08a7fd4
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ export const useSetupTechnology = ({
return;
}

if (
agentPolicyIds.length > 0 &&
(!agentlessPolicyId || !agentPolicyIds.includes(agentlessPolicyId))
) {
const hasAgentPolicies = agentPolicyIds.length > 0;
const agentlessPolicyIsAbsent =
!agentlessPolicyId || !agentPolicyIds.includes(agentlessPolicyId);

if (hasAgentPolicies && agentlessPolicyIsAbsent) {
/*
handle case when agent policy is coming from outside,
e.g. from the get param or when coming to integration from a specific agent policy
Expand Down

0 comments on commit 08a7fd4

Please sign in to comment.