Skip to content

Commit b350dfd

Browse files
committed
limit @Allow nesting to _on_ relational fields
1 parent 6e91dff commit b350dfd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/data-connect/data-connect-api-client-internal.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,9 @@ export class DataConnectApiClient {
483483
childNode = { children: new Map() };
484484
node.children.set(key, childNode);
485485
}
486-
this.mergeFieldsIntoTree(val, childNode);
486+
if (key.includes('_on_')) {
487+
this.mergeFieldsIntoTree(val, childNode);
488+
}
487489
}
488490
}
489491
}

0 commit comments

Comments
 (0)