mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
fix relationship editor bug in console (#1814)
This commit is contained in:
parent
6223852e9d
commit
97ac88edb5
@ -408,6 +408,7 @@ class Relationships extends Component {
|
||||
<RelationshipEditor
|
||||
dispatch={dispatch}
|
||||
tableName={tableName}
|
||||
key={rel.objRel.rel_name}
|
||||
relName={rel.objRel.rel_name}
|
||||
relConfig={findAllFromRel(
|
||||
allSchemas,
|
||||
@ -423,6 +424,7 @@ class Relationships extends Component {
|
||||
);
|
||||
const column2 = rel.arrRel ? (
|
||||
<RelationshipEditor
|
||||
key={rel.arrRel.rel_name}
|
||||
dispatch={dispatch}
|
||||
tableName={tableName}
|
||||
relName={rel.arrRel.rel_name}
|
||||
@ -439,7 +441,7 @@ class Relationships extends Component {
|
||||
<td />
|
||||
);
|
||||
return (
|
||||
<tr key={i}>
|
||||
<tr>
|
||||
{column1}
|
||||
{column2}
|
||||
</tr>
|
||||
|
@ -139,6 +139,7 @@ class RelationshipsView extends Component {
|
||||
dispatch={dispatch}
|
||||
tableName={tableName}
|
||||
relName={rel.objRel.rel_name}
|
||||
key={rel.objRel.rel_name}
|
||||
relConfig={findAllFromRel(
|
||||
allSchemas,
|
||||
tableSchema,
|
||||
@ -156,6 +157,7 @@ class RelationshipsView extends Component {
|
||||
dispatch={dispatch}
|
||||
tableName={tableName}
|
||||
relName={rel.arrRel.rel_name}
|
||||
key={rel.arrRel.rel_name}
|
||||
relConfig={findAllFromRel(
|
||||
allSchemas,
|
||||
tableSchema,
|
||||
@ -169,7 +171,7 @@ class RelationshipsView extends Component {
|
||||
<td />
|
||||
);
|
||||
return (
|
||||
<tr key={i}>
|
||||
<tr>
|
||||
{column1}
|
||||
{column2}
|
||||
</tr>
|
||||
|
Loading…
Reference in New Issue
Block a user