Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
[X] I have searched budibase discussions and github issues to check if my issue already exists
Hosting
Cloud
Tenant ID: valis
Describe the bug
In an automation, when looping through a text string, if there's only one element in the list, the automation doesn't run, showing the error: [object Object]. In the browser console, we can see the following error:
[Builder] HTTP 500 on POST:https://[tenant].budibase.app/api/automations/au_e1af84228cf54a55856b5debf5b76c39/test
value.split is not a function
To Reproduce
Steps to reproduce the behavior:
Create an automation with a text input
Add an action with a loop of input type "string"
Set the "Binding / Value" to {{ trigger.fields.[text_input_field] }}
Test the automation with a single value in the text input
See error
Expected behavior
While the expected input list should be separated by commas, if the list has a single value and no commas, the loop should still iterate that single time..
Checklist
Hosting
Describe the bug In an automation, when looping through a text string, if there's only one element in the list, the automation doesn't run, showing the error:
[object Object]
. In the browser console, we can see the following error:To Reproduce Steps to reproduce the behavior:
{{ trigger.fields.[text_input_field] }}
Expected behavior While the expected input list should be separated by commas, if the list has a single value and no commas, the loop should still iterate that single time..
BUDI-7339