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.
8 lines
167 B
TypeScript
8 lines
167 B
TypeScript
export const usersSlug = 'users'
|
|
|
|
export const pagesSlug = 'pages'
|
|
|
|
export const postsSlug = 'posts'
|
|
|
|
export const collectionSlugs = [usersSlug, pagesSlug, postsSlug]
|