Browse Source

Prettified Code!

pull/1886/head
gabek 5 years ago committed by GitHub Action
parent
commit
7a3f4f6dbb
  1. 6
      web/components/config/form-textfield-with-submit.tsx

6
web/components/config/form-textfield-with-submit.tsx

@ -74,7 +74,11 @@ export default function TextFieldWithSubmit(props: TextFieldWithSubmitProps) { @@ -74,7 +74,11 @@ export default function TextFieldWithSubmit(props: TextFieldWithSubmitProps) {
if (onChange) {
onChange({
fieldName: changedFieldName,
value: useTrim ? changedValue.trim() : useTrimLead ? changedValue.replace(/^\s+/g,'') : changedValue,
value: useTrim
? changedValue.trim()
: useTrimLead
? changedValue.replace(/^\s+/g, '')
: changedValue,
});
}
};

Loading…
Cancel
Save