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

pull/3357/head
Iris Scholten 2018-05-02 18:21:52 -07:00
parent 897f327180
commit d9462013a3
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
// 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)
}
}