Skip to content

Commit a9e35cd

Browse files
committed
minor
1 parent ac60baf commit a9e35cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/static-webserver/client/source/class/osparc/file/FolderContent.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ qx.Class.define("osparc.file.FolderContent", {
314314
selectionRanges.forEach(range => {
315315
for (let i=range.minIndex; i<=range.maxIndex; i++) {
316316
const row = table.getTableModel().getRowData(i);
317-
if (osparc.file.FilesTree.isFile(row.entry)) {
317+
if ("entry" in row && osparc.file.FilesTree.isFile(row.entry)) {
318318
selectedFiles.push(row.entry);
319319
}
320320
}
@@ -323,9 +323,9 @@ qx.Class.define("osparc.file.FolderContent", {
323323
}, this);
324324
table.addListener("cellDbltap", e => {
325325
const selectedRow = e.getRow();
326-
const rowData = table.getTableModel().getRowData(selectedRow);
327-
if ("entry" in rowData) {
328-
this.__itemDblTapped(rowData.entry);
326+
const row = table.getTableModel().getRowData(selectedRow);
327+
if ("entry" in row) {
328+
this.__itemDblTapped(row.entry);
329329
}
330330
}, this);
331331
}

0 commit comments

Comments
 (0)