mirror of
https://github.com/directus/directus.git
synced 2026-01-28 05:18:13 -05:00
Fix collection race condition + search pagination (#540)
This commit is contained in:
@@ -39,8 +39,9 @@ export function useCollectionPreset(
|
||||
}
|
||||
}, 450);
|
||||
|
||||
watch(collection, initLocalPreset);
|
||||
watch(bookmark, initLocalPreset);
|
||||
watch([collection, bookmark], () => {
|
||||
initLocalPreset();
|
||||
});
|
||||
|
||||
const viewOptions = computed<Record<string, any>>({
|
||||
get() {
|
||||
|
||||
@@ -208,6 +208,7 @@ export function useItems(collection: Ref<string>, query: Query) {
|
||||
limit: 0,
|
||||
fields: primaryKeyField.value.field,
|
||||
meta: 'filter_count,total_count',
|
||||
q: searchQuery.value,
|
||||
...filtersToQuery(filters.value),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -99,7 +99,6 @@
|
||||
v-else
|
||||
class="layout"
|
||||
ref="layout"
|
||||
:key="$route.fullPath"
|
||||
:is="`layout-${viewType || 'tabular'}`"
|
||||
:collection="collection"
|
||||
:selection.sync="selection"
|
||||
|
||||
Reference in New Issue
Block a user