Skip to content

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

Fix: Added explicit SecretType type

Daniel Hougaard9c06cab99d00
diff --git a/frontend/src/hooks/api/secrets/queries.tsx b/frontend/src/hooks/api/secrets/queries.tsx
index 28999389e9..382d01785b 100644
--- a/frontend/src/hooks/api/secrets/queries.tsx
+++ b/frontend/src/hooks/api/secrets/queries.tsx
@@ -14,6 +14,7 @@ import {
EncryptedSecret,
EncryptedSecretVersion,
GetSecretVersionsDTO,
+ SecretType,
TGetProjectSecretsAllEnvDTO,
TGetProjectSecretsDTO,
TGetProjectSecretsKey
@@ -77,7 +78,7 @@ export const decryptSecrets = (
skipMultilineEncoding: encSecret.skipMultilineEncoding
};
- if (encSecret.type === "personal") {
+ if (encSecret.type === SecretType.Personal) {
personalSecrets[decryptedSecret.key] = {
id: encSecret.id,
value: secretValue