Skip to content

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

Update CreateReminderForm.tsx

Daniel Hougaard6e656563607a
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx
index 5ac5bca3e3..679b5da11e 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx
@@ -87,12 +87,13 @@ export const CreateReminderForm = ({
// On initial load, filter the members to only include the recipients
if (members.length) {
const filteredMembers = members.filter((m) => recipients?.includes(m.id));
- reset({
- recipients: filteredMembers.map((m) => ({
+ setValue(
+ "recipients",
+ filteredMembers.map((m) => ({
label: m.user.username || m.user.email,
value: m.user.id
}))
- });
+ );
}
}, [members, isOpen]);