File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
services/static-webserver/client/source/class/osparc/file Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -155,17 +155,19 @@ qx.Class.define("osparc.file.FilePicker", {
155155 const params = {
156156 url : {
157157 locationId : outValue . store ,
158- path : outValue . dataset
158+ path : outValue . path
159159 }
160160 } ;
161161 osparc . data . Resources . fetch ( "storagePaths" , "getPaths" , params )
162- . then ( files => {
163- const fileMetadata = files . find ( file => file . file_id === outValue . path ) ;
164- if ( fileMetadata ) {
165- resolve ( fileMetadata ) ;
166- } else {
167- reject ( ) ;
162+ . then ( pagResp => {
163+ if ( pagResp [ "items" ] ) {
164+ const file = pagResp [ "items" ] . find ( item => item . path === outValue . path ) ;
165+ if ( file ) {
166+ resolve ( file [ "file_meta_data" ] ) ;
167+ return ;
168+ }
168169 }
170+ reject ( ) ;
169171 } )
170172 . catch ( ( ) => reject ( ) ) ;
171173 } ) ;
You can’t perform that action at this time.
0 commit comments