Skip to content

Commit

Permalink
Fix argument order for operationDelete calls
Browse files Browse the repository at this point in the history
(closes #168)
  • Loading branch information
bhousel committed Sep 11, 2020
1 parent e4e1908 commit 4adc71f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/validations/short_road.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function validationShortRoad(context) {
entityIds: [entity.id],
onClick: function() {
var id = this.issue.entityIds[0];
var operation = operationDelete([id], context);
var operation = operationDelete(context, [id]);
if (!operation.disabled()) {
operation();
}
Expand Down
4 changes: 2 additions & 2 deletions modules/validations/y_shaped_connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function validationYShapedConnection(context) {
}

function createIssueAndFixForNode(node, context) {
var deletable = !operationDelete([node.id], context).disabled();
var deletable = !operationDelete(context, [node.id]).disabled();
var fix = undefined;
if (deletable) {
fix = new validationIssueFix({
Expand All @@ -60,7 +60,7 @@ export function validationYShapedConnection(context) {
entityIds: [node.id],
onClick: function() {
var id = this.entityIds[0];
var operation = operationDelete([id], context);
var operation = operationDelete(context, [id]);
if (!operation.disabled()) {
operation();
}
Expand Down

0 comments on commit 4adc71f

Please sign in to comment.