prevent console crash when using native queries in an array relationship

GITHUB_PR_NUMBER: 10163
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/10163

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10717
Co-authored-by: Alec Flett <135340+alecf@users.noreply.github.com>
GitOrigin-RevId: a21c22dfddd5cbbd03bd43676b47e5dd0f9f38e6
This commit is contained in:
hasura-bot 2024-03-12 14:46:15 +05:30
parent 8489a4b9b0
commit 39e24189f3

View File

@ -69,7 +69,7 @@ const isExistingArrRel = (currentArrRels, relCols, relTable) => {
currRCol = Object.values(arrRelDef.manual_configuration.column_mapping);
}
if (currTable.name === relTable && sameRelCols(currRCol, relCols)) {
if (currTable?.name === relTable && sameRelCols(currRCol, relCols)) {
_isExistingArrRel = true;
break;
}