Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: addressed greptile

Sheen Capadngan9d19e3771011
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/KubernetesInputForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/KubernetesInputForm.tsx
index 4c4a8f68c5..e164515649 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/KubernetesInputForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/KubernetesInputForm.tsx
@@ -196,7 +196,7 @@ export const KubernetesInputForm = ({
}
});
- const { fields, append, remove } = useFieldArray({
+ const { fields, append, remove, replace } = useFieldArray({
control,
name: "provider.audiences"
});
@@ -263,7 +263,7 @@ export const KubernetesInputForm = ({
// Set audiences if available
if (role.token_default_audiences && role.token_default_audiences.length > 0) {
- setValue("provider.audiences", role.token_default_audiences);
+ replace(role.token_default_audiences);
}
createNotification({