mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
fix system collection forms with custom fields (#10075)
This commit is contained in:
@@ -241,7 +241,8 @@ export const useFieldsStore = defineStore({
|
||||
getFieldsForCollection(collection: string): Field[] {
|
||||
return orderBy(
|
||||
this.fields.filter((field) => field.collection === collection),
|
||||
[(field) => field.meta?.system === true, (field) => (field.meta?.sort ? Number(field.meta?.sort) : null)]
|
||||
[(field) => field.meta?.system === true, (field) => (field.meta?.sort ? Number(field.meta?.sort) : null)],
|
||||
['desc', 'asc']
|
||||
);
|
||||
},
|
||||
getFieldsForCollectionAlphabetical(collection: string): Field[] {
|
||||
|
||||
Reference in New Issue
Block a user