From fdf6c2ecd67ca1ea388408f4392f35aa6d326901 Mon Sep 17 00:00:00 2001 From: Joel Date: Fri, 11 Jul 2025 16:34:05 +0800 Subject: [PATCH] chore: use appid --- web/app/components/workflow-app/components/workflow-main.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow-app/components/workflow-main.tsx b/web/app/components/workflow-app/components/workflow-main.tsx index 8cd6005818..d425e6f595 100644 --- a/web/app/components/workflow-app/components/workflow-main.tsx +++ b/web/app/components/workflow-app/components/workflow-main.tsx @@ -15,7 +15,7 @@ import { useWorkflowRun, useWorkflowStartRun, } from '../hooks' -import { useWorkflowStore } from '@/app/components/workflow/store' +import { useStore, useWorkflowStore } from '@/app/components/workflow/store' type WorkflowMainProps = Pick const WorkflowMain = ({ @@ -64,8 +64,9 @@ const WorkflowMain = ({ handleWorkflowStartRunInChatflow, handleWorkflowStartRunInWorkflow, } = useWorkflowStartRun() + const appId = useStore(s => s.appId) const { fetchInspectVars } = useSetWorkflowVarsWithValue({ - flowId: workflowStore.getState().appId, + flowId: appId, ...useConfigsMap(), }) const {