TernaryFilter null state is broken after refreshing and reseting filters.

Ran into issue with TernaryFilter, which also applies to TrashedFilter that's present in https://github.com/filamentphp/demo.
This only started breaking since version 3.0.28 when filter query params were introduced.

How to reproduce the issue:
  1. Set up filament demo
  2. Upgrade to version 3.0.28 or above
  3. Open Customers index /shop/customers
  4. Enable filter With deleted records
  5. Refresh the page
  6. Click Reset button in filter form
  7. Observe that url query parameter has
    null
    for filter value
  8. Refresh the page
  9. Observe incorrect filter being applied.
Was this page helpful?