mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-11-12 23:21:02 +03:00
console: fix for manually added relationships
GitOrigin-RevId: de609849f14882c4c97a4676e73f396ce7c9d767
This commit is contained in:
parent
8274fee00f
commit
a93135d1b1
@ -328,7 +328,7 @@ export const findAllFromRel = (curTable: Table, rel: Relationship) => {
|
||||
if (fkc) {
|
||||
rTable = fkc.ref_table;
|
||||
rSchema = fkc.ref_table_table_schema;
|
||||
rcol = [fkc.column_mapping[(lcol as any) as string]];
|
||||
rcol = [fkc ? fkc.column_mapping[(lcol as any) as string] : ''];
|
||||
}
|
||||
}
|
||||
|
||||
@ -344,7 +344,7 @@ export const findAllFromRel = (curTable: Table, rel: Relationship) => {
|
||||
rSchema = 'public';
|
||||
}
|
||||
const rfkc = findOppFKConstraint(curTable, rcol);
|
||||
lcol = [rfkc!.column_mapping[(rcol as any) as string]];
|
||||
lcol = [rfkc ? rfkc!.column_mapping[(rcol as any) as string] : ''];
|
||||
}
|
||||
}
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user