Automation conditions are not working with booleans when using JavaScript. #13703
Labels
bb-automations
Budibase Automations related work
bug
Something isn't working
env - production
Bug found in production
firestorm
Data/Infra/Revenue Team
High priority
Created by Linear-GitHub Sync
javascript
Relating to user JavaScript in the builder
Checklist
Hosting
Describe the bug
Automation conditions are not working with booleans when using JavaScript.
To Reproduce
Steps to reproduce the behavior:
true
orfalse
on a conditionreturn true
true
with"true"
(stringify) and do the same forfalse
.Expected behavior
When using the conditional block in automations, comparing booleans should work, e.g.
true === true
and I should not have to stringify these values.Additional context
It could also be nice to expand the number of conditional options:
I had to use JavaScript for the
includes
function, but would be nice if Contains was a conditional option, then the JS wouldn't have been needed in the first place.The text was updated successfully, but these errors were encountered: