mirror of
https://github.com/directus/directus.git
synced 2026-01-30 07:58:15 -05:00
Fix childNode fetching
This commit is contained in:
@@ -163,7 +163,11 @@ async function parseCurrentLevel(
|
||||
|
||||
const fieldNodes = columnsToSelect.map(
|
||||
(column: string) =>
|
||||
children.find((childNode) => childNode.fieldKey === column) ?? { type: 'field', name: column, fieldKey: column }
|
||||
children.find((childNode) => childNode.type === 'field' && childNode.fieldKey === column) ?? {
|
||||
type: 'field',
|
||||
name: column,
|
||||
fieldKey: column,
|
||||
}
|
||||
) as FieldNode[];
|
||||
|
||||
return { fieldNodes, nestedCollectionNodes, primaryKeyField };
|
||||
|
||||
Reference in New Issue
Block a user