diff --git a/src/components/relationshipeditor/RelationshipEditor.tsx b/src/components/relationshipeditor/RelationshipEditor.tsx index b3c3c15..3c4bab4 100644 --- a/src/components/relationshipeditor/RelationshipEditor.tsx +++ b/src/components/relationshipeditor/RelationshipEditor.tsx @@ -601,8 +601,7 @@ export function RelationshipEditor({ return false; } - const [oneIndexedColumn, startingRow] = target; - const startingCol = oneIndexedColumn - 1; // col is +1 for the checkbox. + const [startingCol, startingRow] = target; let adjustedData = inFlightData.current; let rowOffset = 0; diff --git a/src/components/relationshipeditor/columns.ts b/src/components/relationshipeditor/columns.ts index 4f93c80..6023103 100644 --- a/src/components/relationshipeditor/columns.ts +++ b/src/components/relationshipeditor/columns.ts @@ -107,6 +107,9 @@ export const COLUMNS: Column[] = [ group: "Resource", dataKind: DataKind.RESOURCE_TYPE, section: RelationshipSection.RESOURCE, + trailingRowOptions: { + hint: "Add relationship", + }, dataDescription: "definition name", }, { @@ -116,10 +119,6 @@ export const COLUMNS: Column[] = [ group: "Resource", dataKind: DataKind.RESOURCE_ID, section: RelationshipSection.RESOURCE, - trailingRowOptions: { - hint: "Add relationship", - targetColumn: 0, - }, dataDescription: "object ID", }, {