Skip to content

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

consider isError

Matheus Nogueira37684afa8cf2
diff --git a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/BlindIndexAlert.tsx b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/BlindIndexAlert.tsx
index e252cae097..0ac4623a56 100644
--- a/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/BlindIndexAlert.tsx
+++ b/frontend/src/pages/secret-manager/SettingsPage/components/SecretValidationRulesSection/BlindIndexAlert.tsx
@@ -57,7 +57,9 @@ export const BlindIndexAlert = () => {
);
};
- const hasFailed = status?.status === "failed" && !enableBlindIndex.isPending;
+ // The enable request failing leaves the status at not-found, so the mutation is the only signal.
+ const hasFailed =
+ (status?.status === "failed" || enableBlindIndex.isError) && !enableBlindIndex.isPending;
if (wasTriggered && !hasFailed) {
return (