Skip to content

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

fix(frontend): use unique formatter key in for secret references

Scott Wilsond0ec4810d176
diff --git a/frontend/src/components/v2/SecretInput/SecretInput.tsx b/frontend/src/components/v2/SecretInput/SecretInput.tsx
index 747af73d52..c320bb0af8 100644
--- a/frontend/src/components/v2/SecretInput/SecretInput.tsx
+++ b/frontend/src/components/v2/SecretInput/SecretInput.tsx
@@ -34,7 +34,9 @@ const syntaxHighlight = (content?: string | null, isVisible?: boolean, isImport?
// akhilmhdh: Dont remove this br. I am still clueless how this works but weirdly enough
// when break is added a line break works properly
- return formattedContent.concat(<br key={`secret-value-${formattedContent.length + 1}`} />);
+ return formattedContent.concat(
+ <br key={`secret-value-linebreak-${formattedContent.length + 1}`} />
+ );
};
type Props = TextareaHTMLAttributes<HTMLTextAreaElement> & {