From 925d5f76b20d2651773259beed00059adb88f10f Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 4 May 2022 10:28:17 -0400 Subject: [PATCH] Variables: Fixes issue with null variables breaking the dropdown (#48644) (#48702) --- 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++) {