Back

Cannot apply filters with value of 0

  • 0
  • Cloud
Wintermutation
21 Oct, 2023, 06:51

The "Add filter" button is disabled when the Value is set to 0. Probably because zero is falsy in Typescript and there is an "if value" statement somewhere that should be "if value == null"

TL;DR
The "Add filter" button is disabled when the value is set to 0. This is because zero is considered falsy in Typescript. A possible solution is to update the code to check for "null" instead of "if value" in order for the button to be enabled. There is an ongoing discussion on GitHub regarding this issue.
Drake
21 Oct, 2023, 06:59

Probably yes ...it would be good to create an issue for this so we don't lose track of it

Wintermutation
22 Oct, 2023, 08:14
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more