mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Allow fields nested in groups to be visible (#15044)
This commit is contained in:
@@ -87,7 +87,11 @@ const treeList = computed(() => {
|
||||
});
|
||||
|
||||
function filter(field: Field): boolean {
|
||||
if (!includeRelations.value && (field.collection !== collection.value || field.type === 'alias')) return false;
|
||||
if (
|
||||
!includeRelations.value &&
|
||||
(field.collection !== collection.value || (field.type === 'alias' && !field.meta?.special?.includes('group')))
|
||||
)
|
||||
return false;
|
||||
if (!search.value) return true;
|
||||
const children = fieldsStore.getFieldGroupChildren(collection.value, field.field);
|
||||
return children?.some((field) => matchesSearch(field)) || matchesSearch(field);
|
||||
|
||||
Reference in New Issue
Block a user