New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code block in "trigger flow" sends variable with quotes #21263
Comments
I can confirm this issue. This is specially annoying when we want to pass an array where we want to execute the other flow for each item of this list. |
It also happens on a "create data" step. After reading a json array from a webhook step. If the array has only one json item It returns a JSON error. If the payload json array has more than one object It works correctly. |
have u tried to trigger the other flow from API? |
Describe the Bug
When creating a flow with a "trigger flow" you can't send
{{$last}}
in the payload. The linter wants you to add "". When doing so the flow return an invalid JSON error. When you go back and check the raw editor it actually sends {{$last}} with quotes.To Reproduce
You need to create a flow with a "trigger flow" and make a simple flow that sends data through.
You need to add the
{{$last}}
to the code payload (you will have to do quotes here because of the linting).Then run it and you will get this error.
When you go to the raw editor you will see the quotes there and when you see it in your network tab it will show that the escaped quotes are there as well.
video
interface-not-handeling-value-correctly.mov
Directus Version
v10.8.3
Hosting Strategy
Self-Hosted (Docker Image)
The text was updated successfully, but these errors were encountered: