From 9d19e37710116071f5620e565618bf7f1acd5eb2 Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Wed, 22 Oct 2025 03:34:37 +0800 Subject: [PATCH] misc: addressed greptile --- .../ActionBar/CreateDynamicSecretForm/KubernetesInputForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 4c4a8f68c..e16451564 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({