### What? - Updated `TrashView` to pass `trash: true` as a dedicated prop instead of embedding it in the `query` object. - Modified `renderListView` to correctly merge `trash` and `where` queries by using both `queryFromArgs` and `queryFromReq`. - Ensured filtering (via `where`) works correctly in the trash view. ### Why? Previously, the `trash: true` flag was injected into the `query` object, and `renderListView` only used `queryFromArgs`. This caused the `where` clause from filters (added by the `WhereBuilder`) to be overridden, breaking filtering in the trash view. ### How? - Introduced an explicit `trash` prop in `renderListView` arguments. - Updated `TrashView` to pass `trash: true` separately. - Updated `renderListView` to apply the `trash` filter in addition to any `where` conditions.
8.9 KiB
8.9 KiB