From 31784f60453636e5cf8a7dbd5c256b9bd7ffb23f Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Sun, 19 Feb 2023 23:44:44 -0300 Subject: [PATCH] Endpoint of api fixed and fixed bug where node is not null --- space_flow/src/controllers/NodesServices/index.ts | 2 +- .../pages/FlowPage/components/extraSidebarComponent/index.tsx | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/space_flow/src/controllers/NodesServices/index.ts b/space_flow/src/controllers/NodesServices/index.ts index f9325279a..28403741f 100644 --- a/space_flow/src/controllers/NodesServices/index.ts +++ b/space_flow/src/controllers/NodesServices/index.ts @@ -6,5 +6,5 @@ export async function getAll() { export async function sendAll(data) { console.log(data); - return await axios.post("http://localhost:5003/load", data); + return await axios.post("http://localhost:5003/predict", data); } diff --git a/space_flow/src/pages/FlowPage/components/extraSidebarComponent/index.tsx b/space_flow/src/pages/FlowPage/components/extraSidebarComponent/index.tsx index 7fc48550e..482695d07 100644 --- a/space_flow/src/pages/FlowPage/components/extraSidebarComponent/index.tsx +++ b/space_flow/src/pages/FlowPage/components/extraSidebarComponent/index.tsx @@ -113,7 +113,6 @@ export default function ExtraSidebar() { onDragStart={(event) => onDragStart(event, { type: "chatInput", - node: {}, }) } > @@ -131,7 +130,6 @@ export default function ExtraSidebar() { onDragStart={(event) => onDragStart(event, { type: "chatOutput", - node: {}, }) } > @@ -155,7 +153,6 @@ export default function ExtraSidebar() { onDragStart={(event) => onDragStart(event, { type: "str", - node: {}, }) } > @@ -173,7 +170,6 @@ export default function ExtraSidebar() { onDragStart={(event) => onDragStart(event, { type: "bool", - node: {}, }) } >