File tree 2 files changed +6
-1
lines changed
designer/src/lib/core/utils/parameters
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1000,7 +1000,11 @@ export function generateExpressionFromKey(
1000
1000
const result = [ ] ;
1001
1001
// NOTE: Use @body for tokens that come from the body path like outputs.$.Body.weather
1002
1002
let rootMethod = method ;
1003
- if ( overrideMethod && ! isInsideArray && segments [ 0 ] ?. value ?. toString ( ) ?. toLowerCase ( ) === OutputSource . Body ) {
1003
+ if (
1004
+ overrideMethod &&
1005
+ ! isInsideArray &&
1006
+ [ OutputSource . Body , OutputSource . BodyValue ] . includes ( segments [ 0 ] ?. value ?. toString ( ) ?. toLowerCase ( ) ?? '' )
1007
+ ) {
1004
1008
segments . shift ( ) ;
1005
1009
rootMethod = actionName ? `${ OutputSource . Body } (${ convertToStringLiteral ( actionName ) } )` : constants . TRIGGER_BODY_OUTPUT ;
1006
1010
}
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ export const OutputSource = {
137
137
Queries : 'queries' ,
138
138
Headers : 'headers' ,
139
139
Body : 'body' ,
140
+ BodyValue : 'body/value' ,
140
141
Outputs : 'outputs' ,
141
142
} ;
142
143
You can’t perform that action at this time.
0 commit comments