You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

utils.ts 348B

12345678910
  1. export const transformFormSchemasSecretInput = (isPristineSecretInputNames: string[], values: Record<string, any>) => {
  2. const transformedValues: Record<string, any> = { ...values }
  3. isPristineSecretInputNames.forEach((name) => {
  4. if (transformedValues[name])
  5. transformedValues[name] = '[__HIDDEN__]'
  6. })
  7. return transformedValues
  8. }