From 4be9a1b27a9e4f6df5bf2a726c4509e1ecbb2314 Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Thu, 20 Apr 2017 11:46:59 -0500 Subject: [PATCH] Fix linter errors to allow builds to pass --- ui/src/dashboards/components/TemplateVariableRow.js | 4 ++-- ui/src/dashboards/reducers/ui.js | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/src/dashboards/components/TemplateVariableRow.js b/ui/src/dashboards/components/TemplateVariableRow.js index 8a58bd0f2c..e53d262e1d 100644 --- a/ui/src/dashboards/components/TemplateVariableRow.js +++ b/ui/src/dashboards/components/TemplateVariableRow.js @@ -120,8 +120,8 @@ class RowWrapper extends Component { handleSubmit(e) { e.preventDefault() - const code = e.target.code.value - const label = e.target.label.value + // const code = e.target.code.value + // const label = e.target.label.value // updateTempVarsAsync({code, label}) } diff --git a/ui/src/dashboards/reducers/ui.js b/ui/src/dashboards/reducers/ui.js index c36385837a..312a94e643 100644 --- a/ui/src/dashboards/reducers/ui.js +++ b/ui/src/dashboards/reducers/ui.js @@ -187,11 +187,11 @@ export default function ui(state = initialState, action) { d => (d.id === dashboardID ? { - ...d, - templates: d.templates.map( - t => (t.id === templateID ? {...t, ...updates} : t) - ), - } + ...d, + templates: d.templates.map( + t => (t.id === templateID ? {...t, ...updates} : t) + ), + } : d) ) return {...state, dashboards}