diff --git a/public/app/features/dashboard-scene/settings/variables/VariableEditorForm.tsx b/public/app/features/dashboard-scene/settings/variables/VariableEditorForm.tsx index df52aea0273..14cecad19ae 100644 --- a/public/app/features/dashboard-scene/settings/variables/VariableEditorForm.tsx +++ b/public/app/features/dashboard-scene/settings/variables/VariableEditorForm.tsx @@ -43,6 +43,7 @@ export function VariableEditorForm({ variable, onTypeChange, onGoBack, onDiscard const onDescriptionBlur = (e: FormEvent) => variable.setState({ description: e.currentTarget.value }); const onHideChange = (hide: VariableHide) => variable.setState({ hide }); + const isHasVariableOptions = hasVariableOptions(variable); return ( <> @@ -80,7 +81,7 @@ export function VariableEditorForm({ variable, onTypeChange, onGoBack, onDiscard {EditorToRender && } - {hasVariableOptions(variable) && } + {isHasVariableOptions && }
@@ -94,14 +95,17 @@ export function VariableEditorForm({ variable, onTypeChange, onGoBack, onDiscard > Back to list - + + {isHasVariableOptions && ( + + )}