File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments