Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
improvement: replace window reload with query refetch
Scott Wilson5c606fe45f4c
diff --git a/frontend/src/pages/organization/SecretScanningPage/SecretScanningPage.tsx b/frontend/src/pages/organization/SecretScanningPage/SecretScanningPage.tsxindex 58e04e87c3..ba919cdd39 100644--- a/frontend/src/pages/organization/SecretScanningPage/SecretScanningPage.tsx+++ b/frontend/src/pages/organization/SecretScanningPage/SecretScanningPage.tsx@@ -72,8 +72,11 @@ export const SecretScanningPage = withPermission(const { mutateAsync: linkGitAppInstallationWithOrganization } =useLinkGitAppInstallationWithOrg();const { mutateAsync: createNewIntegrationSession } = useCreateNewInstallationSession();- const { data: installationStatus, isPending: isSecretScanningInstatllationStatusLoading } =- useGetSecretScanningInstallationStatus(organizationId);+ const {+ data: installationStatus,+ isPending: isSecretScanningInstatllationStatusLoading,+ refetch: refetchSecretScanningInstallationStatus+ } = useGetSecretScanningInstallationStatus(organizationId);const integrationEnabled =!isSecretScanningInstatllationStatusLoading && installationStatus?.appInstallationCompleted;@@ -91,7 +94,7 @@ export const SecretScanningPage = withPermission(await navigate({to: "/organization/secret-scanning"});- window.location.reload();+ refetchSecretScanningInstallationStatus();}console.log("installation verification complete");