From e0153cd168fa18cae7ec7e002af5fe9cd19cc868 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Mon, 22 Jun 2020 13:40:38 +0300 Subject: [PATCH] fix: the connection preview follows the mouse --- src/Component/Login.purs | 1 - src/typescript/arcs.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Component/Login.purs b/src/Component/Login.purs index 0a1e44f..fd10641 100644 --- a/src/Component/Login.purs +++ b/src/Component/Login.purs @@ -54,7 +54,6 @@ component = handleAction :: Action -> HalogenM Input Action ChildSlots o m Unit handleAction = case _ of HandleLoginForm fields -> do - print "im here" loginUser fields >>= case _ of Left err -> void $ query F._formless unit $ injQuery $ SetLoginError (Just err) unit diff --git a/src/typescript/arcs.ts b/src/typescript/arcs.ts index 4d9f454..3e6c2a7 100644 --- a/src/typescript/arcs.ts +++ b/src/typescript/arcs.ts @@ -270,7 +270,7 @@ export const placeInputs = ( const connectedOverlapping = connected.map((input): T & IArc => { const other = getData(input.output!) - const relative = sub2(null, other, position) + const relative = sub2([], other, position) const angle = Math.atan2(-relative[0], relative[1]) return normalize({