From 78c7be09f87ade4b66702f4544e577e3ece3607b Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 21 Jan 2026 17:04:33 +0800 Subject: [PATCH] chore: not show switch graph skill map in classical --- web/app/components/workflow-app/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/app/components/workflow-app/index.tsx b/web/app/components/workflow-app/index.tsx index bcba90307a..08972bad5b 100644 --- a/web/app/components/workflow-app/index.tsx +++ b/web/app/components/workflow-app/index.tsx @@ -35,6 +35,7 @@ import { useAppContext } from '@/context/app-context' import { fetchRunDetail } from '@/service/log' import { useAppTriggers } from '@/service/use-tools' import { AppModeEnum } from '@/types/app' +import { useFeatures } from '../base/features/hooks' import ViewPicker from '../workflow/view-picker' import WorkflowAppMain from './components/workflow-main' import { useGetRunAndTraceUrl } from './hooks/use-get-run-and-trace-url' @@ -58,6 +59,8 @@ const WorkflowViewContent = ({ graphContent, reload, }: WorkflowViewContentProps) => { + const features = useFeatures(s => s.features) + const isSupportSandbox = !!features.sandbox?.enabled const [viewType, doSetViewType] = useQueryState(WORKFLOW_VIEW_PARAM_KEY, parseAsViewType) const { syncWorkflowDraftImmediately } = useNodesSyncDraft() const pendingSyncRef = useRef | null>(null) @@ -89,6 +92,9 @@ const WorkflowViewContent = ({ } }, [doSetViewType, refreshGraph, syncWorkflowDraftImmediately, viewType]) + if (!isSupportSandbox) { + return graphContent + } return (