Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: add todo
Salman393c0c9e9030
diff --git a/frontend/src/components/v2/SecretInput/SecretInput.tsx b/frontend/src/components/v2/SecretInput/SecretInput.tsxindex af8f5b5011..a317ec54f6 100644--- a/frontend/src/components/v2/SecretInput/SecretInput.tsx+++ b/frontend/src/components/v2/SecretInput/SecretInput.tsx@@ -113,7 +113,7 @@ export const SecretInput = forwardRef<HTMLTextAreaElement, Props>(return;}- // Move to react query+ // Todo: Move to react queryconst [encryptSecrets, folders] = await Promise.all([fetchProjectEncryptedSecrets({workspaceId,@@ -198,6 +198,7 @@ export const SecretInput = forwardRef<HTMLTextAreaElement, Props>(const newValue = `${value.slice(0, currCaretPos)}}${value.slice(currCaretPos)}`;setValue(newValue);+ // TODO: there should be a better way to doonChange?.({ target: { value: newValue } } as any);if (event.currentTarget) {@@ -273,6 +274,7 @@ export const SecretInput = forwardRef<HTMLTextAreaElement, Props>(}newValue = `${start}$\{${replaceReference}}${end}`;setValue(newValue);+ // TODO: there should be a better way to doonChange?.({ target: { value: newValue } } as any);setCaretPos(start.length + replaceReference.length + offset);if (type !== "secret") extractReference(replaceReference);