fix card layout not working (#4267)

This commit is contained in:
Nitwel
2021-02-24 15:46:14 +01:00
committed by GitHub
parent 8d67cffdbb
commit b143e1ca80

View File

@@ -378,7 +378,7 @@ export default defineComponent({
const sort = computed({
get() {
return _layoutQuery.value?.sort || fieldsInCollection.value[0].field;
return _layoutQuery.value?.sort || primaryKeyField.value.field;
},
set(newSort: string) {
_layoutQuery.value = {