Move updateTempVarValues to after putDashboardByID in componentDidMount in dashboardpage to make sure that tempVar values don't get removed immediately after theyre retrieved

pull/10616/head
Iris Scholten 2018-05-02 18:21:52 -07:00
parent e2c5152e2e
commit 9304f8cf42
1 changed files with 1 additions and 1 deletions

View File

@ -111,8 +111,8 @@ class DashboardPage extends Component {
// If using auth and role is Viewer, temp vars will be stale until dashboard // 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) // is refactored so as not to require a write operation (a PUT in this case)
if (!isUsingAuth || isUserAuthorized(meRole, EDITOR_ROLE)) { if (!isUsingAuth || isUserAuthorized(meRole, EDITOR_ROLE)) {
await updateTempVarValues(source, dashboard)
await putDashboardByID(dashboardID) await putDashboardByID(dashboardID)
await updateTempVarValues(source, dashboard)
} }
} }