Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.24k stars 1.44k forks source link

Fix an issue where null values were causing an error in automation loops #14083

Closed PClmnt closed 2 days ago

PClmnt commented 2 days ago

Description

Null or undefined values were causing an issue in the loop binding replacement code and throwing an error. This fix simply does nothing for those values, (since they're empty and wont contain and handlebars statements that need updated).

Also added some tests to cover this issue and potential other problem areas such as empty arrays / objects.

Addresses

https://linear.app/budibase/issue/BUDI-8410/looping-in-automations-cannot-convert-undefined-or-null-to-object

Launchcontrol

linear[bot] commented 2 days ago

BUDI-8410 Looping in Automations - "Cannot convert undefined or null to object"