Skip to content

Commit 8790be6

Browse files
authored
Fix relationship editor column offset bugs (#116)
* fix: relationship editor column offset bugs * retrigger CI
1 parent c0de3e8 commit 8790be6

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/components/relationshipeditor/RelationshipEditor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,7 @@ export function RelationshipEditor({
601601
return false;
602602
}
603603

604-
const [oneIndexedColumn, startingRow] = target;
605-
const startingCol = oneIndexedColumn - 1; // col is +1 for the checkbox.
604+
const [startingCol, startingRow] = target;
606605

607606
let adjustedData = inFlightData.current;
608607
let rowOffset = 0;

src/components/relationshipeditor/columns.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export const COLUMNS: Column[] = [
107107
group: "Resource",
108108
dataKind: DataKind.RESOURCE_TYPE,
109109
section: RelationshipSection.RESOURCE,
110+
trailingRowOptions: {
111+
hint: "Add relationship",
112+
},
110113
dataDescription: "definition name",
111114
},
112115
{
@@ -116,10 +119,6 @@ export const COLUMNS: Column[] = [
116119
group: "Resource",
117120
dataKind: DataKind.RESOURCE_ID,
118121
section: RelationshipSection.RESOURCE,
119-
trailingRowOptions: {
120-
hint: "Add relationship",
121-
targetColumn: 0,
122-
},
123122
dataDescription: "object ID",
124123
},
125124
{

0 commit comments

Comments
 (0)