Skip to content

Commit

Permalink
refactor(plugin-flow-builder): no use getValueFromKeyPath when keyPat…
Browse files Browse the repository at this point in the history
…h ends with _access_token
  • Loading branch information
Iru89 committed Mar 20, 2024
1 parent ebb1859 commit a1f9188
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class FlowText extends ContentFieldsBase {
matches.forEach(match => {
const keyPath = match.slice(1, -1)
const botVariable = keyPath.endsWith(ACCESS_TOKEN_VARIABLE_KEY)
? getValueFromKeyPath(request, match)
? match
: getValueFromKeyPath(request, keyPath)
replacedText = replacedText.replace(
match,
Expand Down

0 comments on commit a1f9188

Please sign in to comment.