Skip to content

Commit 6b3f9b3

Browse files
committed
reset files
1 parent 3ab6f69 commit 6b3f9b3

File tree

1 file changed

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

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,12 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
764764
this._resourcesContainer.setFilesToList(this.__filesList);
765765
this._resourcesContainer.reloadFiles();
766766
},
767+
768+
__resetFilesList: function() {
769+
this._resourcesList = [];
770+
// It will remove the file cards
771+
this._reloadCards();
772+
},
767773
// /FILES
768774

769775
__configureStudyCards: function(cards) {
@@ -1075,7 +1081,7 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
10751081
},
10761082

10771083
invalidateFiles: function() {
1078-
// this.__resetStudiesList();
1084+
this.__resetFilesList();
10791085
if (this._resourcesContainer.getFlatList()) {
10801086
this._resourcesContainer.getFlatList().nextRequest = null;
10811087
}

0 commit comments

Comments
 (0)