Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.92k stars 1.52k forks source link

When filter empty return all table rows is selected no rows are returned, happens when the multi select field value is used in filtering #14496

Open ConorWebb96 opened 1 month ago

ConorWebb96 commented 1 month ago

Checklist

Hosting

Describe the bug When a multi-select form component is used as the value for a filter, no rows are returned when using the filtering option Return all table rows when the filters are empty.

This is likely due to it not seeing an empty array value, that is being passed as having no value?

To Reproduce Steps to reproduce the behavior:

  1. Import app export (provided in the linear ticket as a comment)
  2. Navigate to the home screen
  3. See the table component is empty

Expected behavior All rows should appear when no values are present for any of the form fields used for filtering.

Screenshots

Screenshot 2024-09-02 at 09 38 40

Removed the multi-select field filter and it works.

Screenshot 2024-09-02 at 09 39 17

App Export in linear comment

linear[bot] commented 1 month ago

BUDI-8605 When filter empty return all table rows is selected no rows are returned, happens when the multi select field value is used in filtering

aptkingston commented 1 month ago

I think your hunch is correct - it's probably not considering an empty array as an "empty" value. Pretty sure it only accounts for nullish values or empty strings.