mirror of
https://github.com/directus/directus.git
synced 2026-01-30 19:18:04 -05:00
Fix default fields on layout switch
This commit is contained in:
@@ -146,9 +146,7 @@ export default defineLayout<LayoutOptions, LayoutQuery>({
|
||||
primaryKeyField.value ? [primaryKeyField.value?.field] : []
|
||||
);
|
||||
|
||||
const fields = syncRefProperty(
|
||||
layoutQuery,
|
||||
'fields',
|
||||
const fields = syncRefProperty(layoutQuery, 'fields', () =>
|
||||
fieldsInCollection.value
|
||||
.filter((field: Field) => !field.meta?.hidden)
|
||||
.slice(0, 4)
|
||||
|
||||
Reference in New Issue
Block a user