Move updateTempVarValues to after putDashboardByID in componentDidMount in dashboardpage to make sure that tempVar values don't get removed immediately after theyre retrieved
parent
e2c5152e2e
commit
9304f8cf42
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue