Merge pull request #4515 from Infisical/fix-infisical-secret-input

fix(frontend): use unique formatter key in for secret references
This commit is contained in:
Scott Wilson
2025-09-10 13:05:13 -07:00
committed by GitHub

View File

@@ -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> & {