From 3aceda861baa05953c7ae9e71223d5672a688416 Mon Sep 17 00:00:00 2001 From: asalem Date: Mon, 2 Mar 2020 16:35:23 -0800 Subject: [PATCH] fix(ui): fixed regression bug that preventing variable maps from properly assigning values --- ui/src/variables/utils/hydrateVars.ts | 2 +- ui/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/variables/utils/hydrateVars.ts b/ui/src/variables/utils/hydrateVars.ts index b576e88e527..b0b9cd53ceb 100644 --- a/ui/src/variables/utils/hydrateVars.ts +++ b/ui/src/variables/utils/hydrateVars.ts @@ -161,7 +161,7 @@ const mapVariableValues = ( prevSelection: string, defaultSelection: string ): VariableValues => { - const values: string[] = Object.keys(variable.arguments.values) + const values: string[] = Object.values(variable.arguments.values) return { valueType: 'string', diff --git a/ui/yarn.lock b/ui/yarn.lock index fcd9f70cc5a..ec8b5ac7a20 100644 --- a/ui/yarn.lock +++ b/ui/yarn.lock @@ -1016,10 +1016,10 @@ resolved "https://registry.yarnpkg.com/@influxdata/clockface/-/clockface-1.1.5.tgz#dfedc4f59788717d5e92bd00935dda35c0c60fc8" integrity sha512-5+RDswLCiOBX21rey6e1j4vrwQ6obwMv+qcP6ucH7y0vTRnAaMk9lqKqHH3FGUqUEfBNegtj4Ho8430ywfS6ag== -"@influxdata/flux-lsp-browser@^0.2.2": - version "0.2.2" - resolved "https://registry.yarnpkg.com/@influxdata/flux-lsp-browser/-/flux-lsp-browser-0.2.2.tgz#766ef965da25149ac300df6db1a64ad277b5b50b" - integrity sha512-MlFmu7gVdgJ1pkoC1CRaWmjedi6IuSJa2Bg3vDl0l/1cJyAShtoDs8levYvL0gqcKyvq/i/baXrNXF+SCIM7MQ== +"@influxdata/flux-lsp-browser@0.3.1": + version "0.3.1" + resolved "https://registry.yarnpkg.com/@influxdata/flux-lsp-browser/-/flux-lsp-browser-0.3.1.tgz#472bdd4b82b239955776133c299eea3643237041" + integrity sha512-G813h+ytOnSxjjdNhAjwz+6iL+nZn425eMsCR08fajvMNztbk3GpY5X7LLA7f8JXIsVg1SCczkmSpGkK3lWKSg== "@influxdata/flux-parser@^0.3.0": version "0.3.0"