mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
@@ -326,6 +326,12 @@ export default defineComponent({
|
||||
function useItemOptions() {
|
||||
const page = ref(1);
|
||||
|
||||
watch(
|
||||
() => props.collection,
|
||||
() => (page.value = 1),
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
const sort = computed({
|
||||
get() {
|
||||
return _layoutQuery.value?.sort || primaryKeyField.value?.field;
|
||||
|
||||
Reference in New Issue
Block a user