mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 20:00:43 -03:30
Fixes bug where navigating from one survey question form directly to another wasn't reloading the form.
This commit is contained in:
parent
f44faf4e61
commit
4d448510b4
@ -30,7 +30,7 @@ function AnswerTypeField({ i18n }) {
|
||||
|
||||
return (
|
||||
<FormGroup
|
||||
label={i18n._(t`Answer Type`)}
|
||||
label={i18n._(t`Answer type`)}
|
||||
labelIcon={
|
||||
<Popover
|
||||
content={i18n._(
|
||||
@ -91,6 +91,7 @@ function SurveyQuestionForm({
|
||||
|
||||
return (
|
||||
<Formik
|
||||
enableReinitialize
|
||||
initialValues={{
|
||||
question_name: question?.question_name || '',
|
||||
question_description: question?.question_description || '',
|
||||
@ -126,7 +127,7 @@ function SurveyQuestionForm({
|
||||
id="question-variable"
|
||||
name="variable"
|
||||
type="text"
|
||||
label={i18n._(t`Answer Variable Name`)}
|
||||
label={i18n._(t`Answer variable name`)}
|
||||
validate={combine([noWhiteSpace(i18n), required(null, i18n)])}
|
||||
isRequired
|
||||
tooltip={i18n._(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user