@@ -280,14 +280,14 @@ qx.Class.define("osparc.file.FolderContent", {
280280 }
281281 if ( this . isMultiSelect ( ) ) {
282282 // pass all buttons that are selected
283- const selectedFiles = [ ] ;
283+ const selectedItems = [ ] ;
284284 const iconsLayout = this . getChildControl ( "icons-layout" ) ;
285285 iconsLayout . getChildren ( ) . forEach ( btn => {
286- if ( osparc . file . FilesTree . isFile ( btn . entry ) && btn . getValue ( ) ) {
287- selectedFiles . push ( btn . entry ) ;
286+ if ( btn . getValue ( ) && "entry" in btn ) {
287+ selectedItems . push ( btn . entry ) ;
288288 }
289289 } ) ;
290- this . __selectionChanged ( selectedFiles ) ;
290+ this . __selectionChanged ( selectedItems ) ;
291291 } else {
292292 // unselect the other items
293293 const iconsLayout = this . getChildControl ( "icons-layout" ) ;
@@ -311,17 +311,17 @@ qx.Class.define("osparc.file.FolderContent", {
311311 if ( e . getNativeEvent ( ) . ctrlKey ) {
312312 this . setMultiSelect ( true ) ;
313313 }
314- const selectedFiles = [ ] ;
314+ const selectedItems = [ ] ;
315315 const selectionRanges = table . getSelectionModel ( ) . getSelectedRanges ( ) ;
316316 selectionRanges . forEach ( range => {
317317 for ( let i = range . minIndex ; i <= range . maxIndex ; i ++ ) {
318318 const row = table . getTableModel ( ) . getRowData ( i ) ;
319- if ( row && "entry" in row && osparc . file . FilesTree . isFile ( row . entry ) ) {
320- selectedFiles . push ( row . entry ) ;
319+ if ( row && "entry" in row ) {
320+ selectedItems . push ( row . entry ) ;
321321 }
322322 }
323323 } ) ;
324- this . __selectionChanged ( selectedFiles ) ;
324+ this . __selectionChanged ( selectedItems ) ;
325325 } , this ) ;
326326 table . addListener ( "cellDbltap" , e => {
327327 const selectedRow = e . getRow ( ) ;
0 commit comments