Files
payloadcms/test/query-presets/slugs.ts
Jacob Fletcher 4fc2eec301 fix(ui): query presets are available for unrelated collections (#11872)
When selecting query presets from the list drawer, all query presets are
available for selection, even if unrelated to the underlying collection.
When selecting one of these presets, the list view will crash with
client-side exceptions because the columns and filters that are applied
are incompatible.

The fix is to the thread `filterOptions` through the query presets
drawer. This will ensure that only related collections are shown.
2025-03-25 23:45:03 -04:00

8 lines
167 B
TypeScript

export const usersSlug = 'users'
export const pagesSlug = 'pages'
export const postsSlug = 'posts'
export const collectionSlugs = [usersSlug, pagesSlug, postsSlug]