mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix being able to export a relational field that is within a group (#12260)
This commit is contained in:
@@ -73,7 +73,7 @@ export function useFieldTree(
|
||||
function makeNode(field: Field, allFields: Field[], parent?: FieldNode): FieldNode | FieldNode[] {
|
||||
const relatedCollections = getRelatedCollections(field);
|
||||
const pathContext = parent ? parent.path + '.' : '';
|
||||
const keyContext = parent && !parent.group ? parent.key + '.' : '';
|
||||
const keyContext = parent ? parent.key + '.' : '';
|
||||
|
||||
if (field?.meta?.special?.includes('group')) {
|
||||
const node: FieldNode = {
|
||||
@@ -81,7 +81,7 @@ export function useFieldTree(
|
||||
field: field.field,
|
||||
collection: field.collection,
|
||||
relatedCollection: undefined,
|
||||
key: field.field,
|
||||
key: parent ? parent.key : '',
|
||||
path: pathContext + field.field,
|
||||
group: true,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user