Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/components/relationshipeditor/RelationshipEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 3 additions & 4 deletions src/components/relationshipeditor/columns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ export const COLUMNS: Column[] = [
group: "Resource",
dataKind: DataKind.RESOURCE_TYPE,
section: RelationshipSection.RESOURCE,
trailingRowOptions: {
hint: "Add relationship",
},
dataDescription: "definition name",
},
{
Expand All @@ -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",
},
{
Expand Down
Loading