From a8bb3519c5fafa616e824579b193c248b9386c1f Mon Sep 17 00:00:00 2001 From: Keith Grant Date: Fri, 23 Oct 2020 14:37:32 -0700 Subject: [PATCH] fix multiselect survey question on launch --- awx/ui_next/src/components/LaunchPrompt/steps/SurveyStep.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/LaunchPrompt/steps/SurveyStep.jsx b/awx/ui_next/src/components/LaunchPrompt/steps/SurveyStep.jsx index d5f4a42df4..11ee7a74f7 100644 --- a/awx/ui_next/src/components/LaunchPrompt/steps/SurveyStep.jsx +++ b/awx/ui_next/src/components/LaunchPrompt/steps/SurveyStep.jsx @@ -122,7 +122,7 @@ function MultiSelectField({ question, i18n }) { validate: question.isrequired ? required(null, i18n) : null, }); const id = `survey-question-${question.variable}`; - const hasActualValue = !question.required || meta.value.length > 0; + const hasActualValue = !question.required || meta.value?.length > 0; const isValid = !meta.touched || (!meta.error && hasActualValue); return (