mirror of https://github.com/apache/superset.git
Fixed a bug with new dashboard (#1585)
This commit is contained in:
parent
fdbb2bbdab
commit
ed4825523c
|
@ -19,9 +19,11 @@ export function getInitialState(dashboardData, context) {
|
||||||
dashboard.firstLoad = true;
|
dashboard.firstLoad = true;
|
||||||
|
|
||||||
dashboard.posDict = {};
|
dashboard.posDict = {};
|
||||||
dashboard.position_json.forEach(position => {
|
if (dashboard.position_json) {
|
||||||
dashboard.posDict[position.slice_id] = position;
|
dashboard.position_json.forEach(position => {
|
||||||
});
|
dashboard.posDict[position.slice_id] = position;
|
||||||
|
});
|
||||||
|
}
|
||||||
dashboard.curUserId = dashboard.context.user_id;
|
dashboard.curUserId = dashboard.context.user_id;
|
||||||
dashboard.refreshTimer = null;
|
dashboard.refreshTimer = null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue