PipedreamHQ / PipedreamHQ/pipedream
[BUG] Integer prop with options does not accept 0 as a value
- Dominant language
- JavaScript
- Stars
- 11.7k
- Forks
- 5.8k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 102
Description
**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-selected `option`.
**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](https://github.com/PipedreamHQ/pipedream/tree/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:

Contributor guide
Assessment
This issue has not been assessed yet.