From 8dcfb122984854758e2c8f8f299d16aba321c95a Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Mon, 31 Oct 2022 13:19:31 -0700 Subject: [PATCH] Fixed issue with organization details --- ui/src/app/form/component/widgets/TextWidget.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/src/app/form/component/widgets/TextWidget.js b/ui/src/app/form/component/widgets/TextWidget.js index 2f8c183b0..2e2db043f 100644 --- a/ui/src/app/form/component/widgets/TextWidget.js +++ b/ui/src/app/form/component/widgets/TextWidget.js @@ -41,8 +41,10 @@ const TextWidget = ({ }; React.useEffect(() => { - onChange(fieldValue); - }, [fieldValue, onChange]); + if (fieldValue || touched) { + onChange(fieldValue); + } + }, [fieldValue, onChange, touched]); const translator = useTranslator();