[BUG] Integer prop with options does not accept 0 as a value #5429
Labels
bug
Something isn't working
tracked internally
Issue is also tracked in our internal issue tracker
triaged
For maintainers: This issue has been triaged by a Pipedream employee
Describe the bug
Integer props normally accept
0
as a valid value, but that is not the case if the value comes from a user-selectedoption
.To Reproduce
I've created a sample action at
components/formatting/actions/integer-option-zero-example/
in a branch named bug-sample_integer-option-zero to easily reproduce this. Simply publish that action and enter/select values as shown on the screenshots below.Expected behavior
0 should be a valid value for option-based integer props, since it is valid for integer props without options.
Screenshots
Here's an integer prop without options, accepting 0 as a value:
And here's an integer prop with options, including one with 0 as a value, which it does not accept as valid:
The text was updated successfully, but these errors were encountered: