Skip to content

Commit

Permalink
#5107 - fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-sloboda committed Aug 28, 2024
1 parent e31db3c commit a6d9a48
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ export class CommonArrowTool extends ArrowTool implements Tool {
this.dragContext,
);
} else {
this.dragContext.action = this.reactionMoveTool.mousemove(
event,
this.dragContext as CommonArrowDragContext<ReactionArrowClosestItem>,
);
// Otherwise build fails during prod build but not dev
const dragContext = this
.dragContext as CommonArrowDragContext<ReactionArrowClosestItem>;
dragContext.action = this.reactionMoveTool.mousemove(event, dragContext);
}
this.editor.update(this.dragContext.action, true);
}
Expand All @@ -122,10 +122,10 @@ export class CommonArrowTool extends ArrowTool implements Tool {
this.dragContext,
);
} else {
this.dragContext.action = this.reactionMoveTool.mouseup(
event,
this.dragContext as CommonArrowDragContext<ReactionArrowClosestItem>,
);
// Otherwise build fails during prod build but not dev
const dragContext = this
.dragContext as CommonArrowDragContext<ReactionArrowClosestItem>;
dragContext.action = this.reactionMoveTool.mouseup(event, dragContext);
}
const { action } = this.dragContext;
if (action) {
Expand Down

0 comments on commit a6d9a48

Please sign in to comment.