Skip to content

Commit

Permalink
Removed paramOrder fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
rafawendel committed Jan 6, 2021
1 parent 4952605 commit a0c1c0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions client/app/services/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ function transformSingle(dashboard) {
dashboard.widgets = prepareDashboardWidgets(dashboard.widgets);
}
dashboard.publicAccessEnabled = dashboard.public_url !== undefined;

return dashboard;
}

Expand Down Expand Up @@ -216,10 +215,6 @@ Dashboard.prototype.getParametersDefs = function getParametersDefs() {
})
);

if (!_.isArray(this.options.globalParamOrder)) {
this.options.globalParamOrder = _.map(resultingGlobalParams, "name");
}

// order dashboard params using paramOrder
return _.sortBy(resultingGlobalParams, param =>
_.includes(this.options.globalParamOrder, param.name)
Expand Down
4 changes: 0 additions & 4 deletions client/app/services/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,6 @@ class Widget {
}
);

if (!isArray(this.options.paramOrder)) {
this.options.paramOrder = map(localParameters, "name");
}

// order widget params using paramOrder
return sortBy(localParameters, param =>
includes(this.options.paramOrder, param.name)
Expand Down

0 comments on commit a0c1c0e

Please sign in to comment.