mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
fix multiselect survey question on launch
This commit is contained in:
parent
9b5e59f045
commit
a8bb3519c5
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user