Skip to content

Commit a17c7ab

Browse files
committed
minor
1 parent 3e6fa0d commit a17c7ab

File tree

1 file changed

+6
-7
lines changed
  • services/static-webserver/client/source/class/osparc/dashboard

1 file changed

+6
-7
lines changed

services/static-webserver/client/source/class/osparc/dashboard/StudyBrowser.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -979,9 +979,9 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
979979
});
980980
osparc.utils.Utils.setIdToWidget(sortByButton, "sortByButton");
981981
sortByButton.addListener("sortByChanged", e => {
982-
this.setOrderBy(e.getData())
983-
this.__resetStudiesList();
984-
this.__reloadStudies();
982+
this.setOrderBy(e.getData());
983+
this.invalidateStudies();
984+
this.reloadResources();
985985
}, this);
986986
this._toolbar.add(sortByButton);
987987
},
@@ -1219,13 +1219,12 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
12191219

12201220
_updateStudyData: function(studyData) {
12211221
studyData["resourceType"] = "study";
1222-
const studies = this._resourcesList;
1223-
const index = studies.findIndex(study => study["uuid"] === studyData["uuid"]);
1222+
const index = this._resourcesList.findIndex(study => study["uuid"] === studyData["uuid"]);
12241223
if (index === -1) {
12251224
// add it in first position, most likely it's a new study
1226-
studies.unshift(studyData);
1225+
this._resourcesList.unshift(studyData);
12271226
} else {
1228-
studies[index] = studyData;
1227+
this._resourcesList[index] = studyData;
12291228
}
12301229
this._reloadCards();
12311230
},

0 commit comments

Comments
 (0)