Browse Source

fix: update wrong condition in marking hm relation associated to mm

re #1663

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/1668/head
Pranav C 3 years ago
parent
commit
125ca8cab2
  1. 2
      packages/nocodb/src/lib/noco/meta/api/metaDiffApis.ts

2
packages/nocodb/src/lib/noco/meta/api/metaDiffApis.ts

@ -834,7 +834,7 @@ export async function extractAndGenerateManyToManyRelations(
if (!colOpt1 || colOpt1.type !== RelationTypes.HAS_MANY) continue; if (!colOpt1 || colOpt1.type !== RelationTypes.HAS_MANY) continue;
if ( if (
colOpt1.fk_child_column_id !== colOpt.fk_child_column_id && colOpt1.fk_child_column_id !== colOpt.fk_child_column_id ||
colOpt1.fk_parent_column_id !== colOpt.fk_parent_column_id colOpt1.fk_parent_column_id !== colOpt.fk_parent_column_id
) )
continue; continue;

Loading…
Cancel
Save