Skip to content

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

Fix fast clicking issue on commit changes modal

Carlos Monastyrski15545a088601
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx
index d79a107dba..f92b761a14 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/SecretDashboardPage.tsx
@@ -106,7 +106,7 @@ const Page = () => {
});
const { permission } = useProjectPermission();
- const { mutateAsync: createCommit } = useCreateCommit();
+ const { mutateAsync: createCommit, isPending: isCommitPending } = useCreateCommit();
const tableRef = useRef<HTMLTableElement>(null);
@@ -997,7 +997,7 @@ const Page = () => {
environment={environment}
workspaceId={workspaceId}
secretPath={secretPath}
- isCommitting={false}
+ isCommitting={isCommitPending}
/>
)}
{noAccessSecretCount > 0 && <SecretNoAccessListView count={noAccessSecretCount} />}