From 04d54c03196d75bc9ce9a3d1ca30c9f7cee6ab6a Mon Sep 17 00:00:00 2001 From: StyleZhang Date: Tue, 5 Mar 2024 12:40:56 +0800 Subject: [PATCH] fix --- .../app/(appDetailLayout)/[appId]/workflow/page.tsx | 13 +------------ web/app/components/workflow/index.tsx | 1 + 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/workflow/page.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/workflow/page.tsx index fa7434e745..04ef37483f 100644 --- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/workflow/page.tsx +++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/workflow/page.tsx @@ -4,19 +4,8 @@ import { memo } from 'react' import Workflow from '@/app/components/workflow' const Page = () => { - const nodes = [ - { - id: '1', - type: 'custom', - position: { x: 0, y: 0 }, - data: { type: 'start' }, - }, - ] return ( - + ) } export default memo(Page) diff --git a/web/app/components/workflow/index.tsx b/web/app/components/workflow/index.tsx index d0d6708ae1..48d82174d8 100644 --- a/web/app/components/workflow/index.tsx +++ b/web/app/components/workflow/index.tsx @@ -118,6 +118,7 @@ const WorkflowWrap: FC = ({ const startNode = { id: `${Date.now()}`, + type: 'custom', data: NodeInitialData.start, position: { x: 100,