{
e.preventDefault();
@@ -86,8 +86,8 @@ class WBBrowseDialogProjectList extends Component {
render({ app, navigate, page, selectWhat }, { numPages, rows }) {
return (
-
{
e.preventDefault();
- this.browseDialogRef.current.show(isFile ? 'file' : 'directory', isArray,
+ this.browseDialogRef.current.show(
+ [].concat(isFile ? 'file' : []).concat(isDirectory ? 'directory' : []),
+ isArray,
v => {
this.state.inputs[inputSpec.id] = JSON.stringify(v);
this.setState({});
@@ -212,8 +219,7 @@ class WBLaunchWorkflowPage extends Component {
for (let k in this.state.inputs) {
try {
let val = jsyaml.safeLoad(this.state.inputs[k]);
- const { isFile } = inputSpecInfo(main.inputs.find(a => (a.id === k)));
- val = uuidsToCwl(val, isFile);
+ val = uuidsToCwl(val);
k = k.split('/').slice(1).join('/');
inputs[k] = (val === undefined ? null : val);
} catch (exc) {