From cfd4f2a732a29fe1cc066db709a19bed3b489471 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Thu, 6 Jun 2024 17:55:52 -0300 Subject: [PATCH] chore: Update import paths for GenericNode and getFieldTitle --- .github/workflows/pre-release.yml | 4 ++++ .../src/pages/FlowPage/components/PageComponent/index.tsx | 2 +- src/frontend/src/utils/reactflowUtils.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 8cb0bc90e..286a7a921 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -35,6 +35,10 @@ jobs: with: python-version: "3.10" cache: "poetry" + - name: Set up Nodejs 20 + uses: actions/setup-node@v4 + with: + node-version: "20" - name: Check Version id: check-version run: | diff --git a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx index 9d1db186f..eb94a7fde 100644 --- a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx @@ -11,13 +11,13 @@ import ReactFlow, { SelectionDragHandler, updateEdge, } from "reactflow"; +import GenericNode from "../../../../CustomNodes/GenericNode"; import { INVALID_SELECTION_ERROR_ALERT, UPLOAD_ALERT_LIST, UPLOAD_ERROR_ALERT, WRONG_FILE_ERROR_ALERT, } from "../../../../constants/alerts_constants"; -import GenericNode from "../../../../customNodes/GenericNode"; import useAlertStore from "../../../../stores/alertStore"; import useFlowStore from "../../../../stores/flowStore"; import useFlowsManagerStore from "../../../../stores/flowsManagerStore"; diff --git a/src/frontend/src/utils/reactflowUtils.ts b/src/frontend/src/utils/reactflowUtils.ts index d1f960017..62e87c50b 100644 --- a/src/frontend/src/utils/reactflowUtils.ts +++ b/src/frontend/src/utils/reactflowUtils.ts @@ -8,6 +8,7 @@ import { XYPosition, } from "reactflow"; import ShortUniqueId from "short-unique-id"; +import getFieldTitle from "../CustomNodes/utils/get-field-title"; import { INPUT_TYPES, LANGFLOW_SUPPORTED_TYPES, @@ -16,7 +17,6 @@ import { specialCharsRegex, } from "../constants/constants"; import { downloadFlowsFromDatabase } from "../controllers/API"; -import getFieldTitle from "../customNodes/utils/get-field-title"; import { DESCRIPTIONS } from "../flow_constants"; import { APIClassType,