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
chore: cast to prevent ts issue
Scott Wilsonc31644603c39
diff --git a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2Form.tsx b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2Form.tsxindex 38c23451b0..a8547096ba 100644--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2Form.tsx+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2Form.tsx@@ -78,7 +78,7 @@ export const SecretRotationV2Form = ({const formMethods = useForm<TSecretRotationV2Form>({resolver: zodResolver(SecretRotationV2FormSchema(Boolean(secretRotation))),- defaultValues: secretRotation+ defaultValues: (secretRotation? {...secretRotation,environment: currentProject?.environments.find((env) => env.slug === envSlug),@@ -96,7 +96,7 @@ export const SecretRotationV2Form = ({secretPath,...((rotationOption?.template as object) ?? {}), // can't infer type since we don't know which specific type it is...(initialFormData as object)- },+ }) as Partial<TSecretRotationV2Form>,reValidateMode: "onChange"});