Zipper-Inc / zipper-functions

The code for zipper.dev and zipper.run. Write and run typescript functions in your browser without having to write any auth, FE, API code.
https://zipper.dev
MIT License
6 stars 2 forks source link

Tony/fix We don't handle falsey and default values as expected #691

Closed antoniel closed 10 months ago

antoniel commented 10 months ago

This Pull Request addresses an issue (#645) in the playground where default parameter values were being overridden by falsy values such as an empty string ('') or null. Previously, when a parameter had a default value defined, if a falsy value was passed, the default value was incorrectly discarded. The fix implemented in this PR treats these inputs as optional, recognizing that they already have a defined value. This change ensures that default values are used when a falsy value is provided, maintaining the intended functionality of the parameters.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zipper-run ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 4, 2024 3:25pm