Skip to content

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

Update SecretInput.tsx

Daniel Hougaard00d83f913655
diff --git a/frontend/src/components/v2/SecretInput/SecretInput.tsx b/frontend/src/components/v2/SecretInput/SecretInput.tsx
index 5e7bbef786..4ba089c462 100644
--- a/frontend/src/components/v2/SecretInput/SecretInput.tsx
+++ b/frontend/src/components/v2/SecretInput/SecretInput.tsx
@@ -15,7 +15,7 @@ const replaceContentWithDot = (str: string) => {
};
const syntaxHighlight = (content?: string | null, isVisible?: boolean, isImport?: boolean) => {
- if (isImport) return "IMPORTED";
+ if (isImport && !content) return "IMPORTED";
if (content === "") return "EMPTY";
if (!content) return "EMPTY";
if (!isVisible) return replaceContentWithDot(content);