Skip to content

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

fix: added dirty flag to set fn in dropzone paste secret

Akhil Mohan9d57b1db8757
diff --git a/frontend/src/views/DashboardPage/components/SecretDropzone/SecretDropzone.tsx b/frontend/src/views/DashboardPage/components/SecretDropzone/SecretDropzone.tsx
index 4e632e517d..315eaf63a3 100644
--- a/frontend/src/views/DashboardPage/components/SecretDropzone/SecretDropzone.tsx
+++ b/frontend/src/views/DashboardPage/components/SecretDropzone/SecretDropzone.tsx
@@ -200,7 +200,8 @@ export const SecretDropzone = ({
if (secrets?.secrets) {
setValue(
"secrets",
- secrets?.secrets?.reduce((prev, curr) => ({ ...prev, [curr.key]: curr.value }), {})
+ secrets?.secrets?.reduce((prev, curr) => ({ ...prev, [curr.key]: curr.value }), {}),
+ { shouldDirty: true }
);
}
};