mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 06:17:36 -02:30
fix multiselect survey question on launch
This commit is contained in:
@@ -122,7 +122,7 @@ function MultiSelectField({ question, i18n }) {
|
|||||||
validate: question.isrequired ? required(null, i18n) : null,
|
validate: question.isrequired ? required(null, i18n) : null,
|
||||||
});
|
});
|
||||||
const id = `survey-question-${question.variable}`;
|
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);
|
const isValid = !meta.touched || (!meta.error && hasActualValue);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user