Skip to content

Commit

Permalink
Fixed issue with organization details
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Oct 31, 2022
1 parent e723dfd commit 8dcfb12
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/src/app/form/component/widgets/TextWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ const TextWidget = ({
};

React.useEffect(() => {
onChange(fieldValue);
}, [fieldValue, onChange]);
if (fieldValue || touched) {
onChange(fieldValue);
}
}, [fieldValue, onChange, touched]);

const translator = useTranslator();

Expand Down

0 comments on commit 8dcfb12

Please sign in to comment.