mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
500 error when using scoped fields query when not applicable (#14627)
* Initial hacky fix for invalid field formats * preventing parseFields from recursively parsing fields for non applicable relations * removed unneeded parsefields exception
This commit is contained in:
@@ -106,7 +106,7 @@ export default async function getASTFromQuery(
|
||||
|
||||
fields = await convertWildcards(parentCollection, fields);
|
||||
|
||||
if (!fields) return [];
|
||||
if (!fields || !Array.isArray(fields)) return [];
|
||||
|
||||
const children: (NestedCollectionNode | FieldNode | FunctionFieldNode)[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user