File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 43
43
"dependencies" : {
44
44
"@musement/iso-duration" : " ^1.0.0" ,
45
45
"@openeo/js-client" : " ^2.5.1" ,
46
- "@openeo/js-commons" : " ^1.4.0 " ,
46
+ "@openeo/js-commons" : " ^1.4.1 " ,
47
47
"@openeo/js-processgraphs" : " ^1.3.0" ,
48
48
"@openeo/vue-components" : " ^2.8.0" ,
49
49
"ajv" : " ^6.12.6" ,
Original file line number Diff line number Diff line change @@ -190,7 +190,14 @@ export default class Exporter extends ProcessGraph {
190
190
}
191
191
192
192
async resolveCallback ( node , key ) {
193
- let callback = node . getArgument ( key ) ;
193
+ let callback ;
194
+ if ( node . process_id === 'load_collection' ) {
195
+ let properties = node . getArgument ( 'properties' ) ;
196
+ callback = properties [ key ] ;
197
+ }
198
+ else {
199
+ callback = node . getArgument ( key ) ;
200
+ }
194
201
let parameters = callback . getCallbackParameters ( ) ;
195
202
await callback . execute ( parameters ) ;
196
203
let fnName = this . var ( `${ key } ${ this . fnCounter ++ } ` , 'fn_' ) ;
@@ -253,7 +260,7 @@ export default class Exporter extends ProcessGraph {
253
260
return `${ id } _` ;
254
261
}
255
262
if ( ! id . match ( / ^ [ a - z _ ] \w * $ / ) ) {
256
- return ` ${ prefix } ${ id } ` ;
263
+ return prefix + id . replace ( / [ ^ \w ] + / g , '_' ) ;
257
264
}
258
265
else {
259
266
return id ;
You can’t perform that action at this time.
0 commit comments