Skip to content

Commit

Permalink
[Fleet] Do not display inactive enrollment token in the agent enrollm…
Browse files Browse the repository at this point in the history
…ent flyout (#87300) (#87364)
  • Loading branch information
nchaulet authored Jan 5, 2021
1 parent afa614f commit f3dc9b5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export const EnrollmentStepAgentPolicy: React.FC<Props> = (props) => {
}

setEnrollmentAPIKeys(
res.data.list.filter((key) => key.policy_id === selectedState.agentPolicyId)
res.data.list.filter(
(key) => key.policy_id === selectedState.agentPolicyId && key.active === true
)
);
} catch (error) {
notifications.toasts.addError(error, {
Expand Down

0 comments on commit f3dc9b5

Please sign in to comment.