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 30, 2024
1 parent ab5bfb9 commit 1ae46d8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/ketcher-react/src/script/editor/tool/arrow/commonArrow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ export class CommonArrowTool extends ArrowTool implements Tool {
event,
this.dragContext,
);
} else if (CommonArrowTool.isDragContextReaction(this.dragContext)) {
this.dragContext.action = this.reactionMoveTool.mousemove(
event,
this.dragContext,
);
} else {
// Otherwise build fails during prod build but not dev
const dragContext = this
.dragContext as CommonArrowDragContext<ReactionArrowClosestItem>;
dragContext.action = this.reactionMoveTool.mousemove(event, dragContext);
}
if (this.dragContext.action) {
this.editor.update(this.dragContext.action, true);
Expand All @@ -131,11 +131,11 @@ export class CommonArrowTool extends ArrowTool implements Tool {
event,
this.dragContext,
);
} else if (CommonArrowTool.isDragContextReaction(this.dragContext)) {
this.dragContext.action = this.reactionMoveTool.mouseup(
event,
this.dragContext,
);
} else {
// 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 1ae46d8

Please sign in to comment.