From 8db84a6e20d695d6cc665169e460aab99d980cee Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Fri, 18 Jun 2021 14:19:56 -0700 Subject: [PATCH] fixed typeahead --- ui/src/app/form/component/widgets/OptionWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/form/component/widgets/OptionWidget.js b/ui/src/app/form/component/widgets/OptionWidget.js index 142941dd3..534595ead 100644 --- a/ui/src/app/form/component/widgets/OptionWidget.js +++ b/ui/src/app/form/component/widgets/OptionWidget.js @@ -80,7 +80,7 @@ const OptionWidget = ({ } }; - const defaultInputValue = typeof value === 'object' && value && value.label ? value.label : value; + const defaultInputValue = typeof value === 'object' && value && value.label ? value.label : value ? value : ''; const [ inputValue, setInputValue ] = React.useState( defaultInputValue );