Skip to content

Commit

Permalink
Removed console log
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 1, 2021
1 parent 04fb461 commit 816f7cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/src/app/form/component/widgets/OptionWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ const OptionWidget = ({
...props
}) => {

console.log(value, props)

const _onChange = (selected) => onChange(selected[0] === '' ? options.emptyValue : selected[0]);
const _onBlur = ({ target: { value } }) => onBlur(id, value);
const _onFocus = ({ target: { value } }) => onFocus(id, value);
Expand All @@ -65,7 +63,7 @@ const OptionWidget = ({

return (
<Form.Group className="mb-0">
<Form.Label className={`${rawErrors.length > 0 ? "text-danger" : ""}`}>
<Form.Label className={`${(touched && rawErrors.length > 0) ? "text-danger" : ""}`}>
<span>
<Translate value={label || schema.title} />
{(label || schema.title) && required ? <FontAwesomeIcon icon={faAsterisk} className="text-danger ml-2" size="sm" /> : null}
Expand Down

0 comments on commit 816f7cd

Please sign in to comment.