mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Replace functions within arrays in GraphQL (#14705)
This commit is contained in:
@@ -1602,7 +1602,8 @@ export class GraphQLService {
|
||||
|
||||
result[currentKey] = Object.values(value)[0]!;
|
||||
} else {
|
||||
result[currentKey] = value?.constructor === Object ? replaceFuncDeep(value) : value;
|
||||
result[currentKey] =
|
||||
value?.constructor === Object || value?.constructor === Array ? replaceFuncDeep(value) : value;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user