[Fleet] Do not display inactive enrollment token in the agent enrollment flyout (#87300)
This commit is contained in:
parent
16ad4d6685
commit
a4bbf470e2
|
@ -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, {
|
||||
|
|
Loading…
Reference in a new issue