mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 02:27:39 +00:00
fix(frontend): use unique formatter key in for secret references
This commit is contained in:
@@ -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
|
// akhilmhdh: Dont remove this br. I am still clueless how this works but weirdly enough
|
||||||
// when break is added a line break works properly
|
// 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> & {
|
type Props = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
||||||
|
|||||||
Reference in New Issue
Block a user