This commit is contained in:
parent
9044b515ab
commit
1e807e7701
|
@ -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