fix(next): cannot filter trash (#13320)
### 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.
This commit is contained in:
@@ -45,7 +45,7 @@ The following options are available:
|
||||
|
||||
| Path | Description |
|
||||
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **`url`** | String, or function that returns a string, pointing to your front-end application. This value is used as the iframe `src`. [More details](#url). |
|
||||
| **`url`** | String, or function that returns a string, pointing to your front-end application. This value is used as the iframe `src`. [More details](#url). |
|
||||
| **`breakpoints`** | Array of breakpoints to be used as “device sizes” in the preview window. Each item appears as an option in the toolbar. [More details](#breakpoints). |
|
||||
| **`collections`** | Array of collection slugs to enable Live Preview on. |
|
||||
| **`globals`** | Array of global slugs to enable Live Preview on. |
|
||||
|
||||
Reference in New Issue
Block a user