Skip to content

Commit d53b9a8

Browse files
authored
Bugfix: Empty File-Picker (#2203)
1 parent 01e6266 commit d53b9a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/web/client/source/class/osparc/file/FilePicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ qx.Class.define("osparc.file.FilePicker", {
8080

8181
isOutputFromStore: function(outputs) {
8282
const outFileValue = this.getOutput(outputs);
83-
return (typeof outFileValue === "object" && "path" in outFileValue);
83+
return (outFileValue && typeof outFileValue === "object" && "path" in outFileValue);
8484
},
8585

8686
isOutputDownloadLink: function(outputs) {
8787
const outFileValue = this.getOutput(outputs);
88-
return (typeof outFileValue === "object" && "downloadLink" in outFileValue);
88+
return (outFileValue && typeof outFileValue === "object" && "downloadLink" in outFileValue);
8989
},
9090

9191
extractLabelFromLink: function(outputs) {

0 commit comments

Comments
 (0)