Skip to content

Commit

Permalink
fix(merge-tool): Fix relationshipSection for new entities
Browse files Browse the repository at this point in the history
canEdit was not set on relationshipSection, so no add are edit buttons were shown for new entities
  • Loading branch information
MonkeyDo committed Dec 13, 2019
1 parent d474d65 commit 484021a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/helpers/entityRouteUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ export function addInitialRelationship(props, relationshipTypeId, relationshipIn

if (!props.initialState.relationshipSection) {
props.initialState.relationshipSection = {};
props.initialState.relationshipSection.canEdit = true;
props.initialState.relationshipSection.lastRelationships = null;
props.initialState.relationshipSection.relationshipEditorProps = null;
props.initialState.relationshipSection.relationshipEditorVisible = false;
Expand Down

0 comments on commit 484021a

Please sign in to comment.