From 2e5f7976668d13218be45c7c25a626ae96340be8 Mon Sep 17 00:00:00 2001 From: Joao Silva <100691367+JoaoSilvaGrafana@users.noreply.github.com> Date: Wed, 4 May 2022 14:27:22 +0100 Subject: [PATCH] Variables: Fixes issue with null variables breaking the dropdown (#48644) --- public/app/features/variables/state/sharedReducer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/variables/state/sharedReducer.ts b/public/app/features/variables/state/sharedReducer.ts index 53c29487412..572f8f1485f 100644 --- a/public/app/features/variables/state/sharedReducer.ts +++ b/public/app/features/variables/state/sharedReducer.ts @@ -130,6 +130,7 @@ const sharedReducerSlice = createSlice({ instanceState.current = current; instanceState.options = instanceState.options.map((option) => { option.value = ensureStringValues(option.value); + option.text = ensureStringValues(option.text); let selected = false; if (Array.isArray(current.value)) { for (let index = 0; index < current.value.length; index++) {