From 9304f8cf4270487e73845284e5d8cff11b39a376 Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Wed, 2 May 2018 18:21:52 -0700 Subject: [PATCH] Move updateTempVarValues to after putDashboardByID in componentDidMount in dashboardpage to make sure that tempVar values don't get removed immediately after theyre retrieved --- ui/src/dashboards/containers/DashboardPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/dashboards/containers/DashboardPage.js b/ui/src/dashboards/containers/DashboardPage.js index dcab483381..19f64d7956 100644 --- a/ui/src/dashboards/containers/DashboardPage.js +++ b/ui/src/dashboards/containers/DashboardPage.js @@ -111,8 +111,8 @@ class DashboardPage extends Component { // If using auth and role is Viewer, temp vars will be stale until dashboard // is refactored so as not to require a write operation (a PUT in this case) if (!isUsingAuth || isUserAuthorized(meRole, EDITOR_ROLE)) { - await updateTempVarValues(source, dashboard) await putDashboardByID(dashboardID) + await updateTempVarValues(source, dashboard) } }