diff --git a/frontend/libs/console/legacy-ce/src/lib/components/Services/Data/TableRelationships/autoRelations.js b/frontend/libs/console/legacy-ce/src/lib/components/Services/Data/TableRelationships/autoRelations.js index fce62f82247..3166e7ab416 100644 --- a/frontend/libs/console/legacy-ce/src/lib/components/Services/Data/TableRelationships/autoRelations.js +++ b/frontend/libs/console/legacy-ce/src/lib/components/Services/Data/TableRelationships/autoRelations.js @@ -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; }