1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Merge branch 'develop' into fix/BUDI-7508

This commit is contained in:
Michael Drury 2023-09-27 13:33:20 +01:00 committed by GitHub
commit 81bbc3adf6
2 changed files with 5 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{
"version": "2.10.12-alpha.23",
"version": "2.10.12-alpha.24",
"npmClient": "yarn",
"packages": [
"packages/*"

View file

@ -818,7 +818,10 @@ export class ExternalRequest {
// can't really use response right now
const response = await getDatasourceAndQuery(json)
// handle many to many relationships now if we know the ID (could be auto increment)
if (operation !== Operation.READ && processed.manyRelationships) {
if (
operation !== Operation.READ &&
processed.manyRelationships?.length > 0
) {
await this.handleManyRelationships(
table._id || "",
response[0],