diff --git a/web/app/components/workflow/nodes/_base/components/node-control.tsx b/web/app/components/workflow/nodes/_base/components/node-control.tsx index 544e595ecf..2a52737bbd 100644 --- a/web/app/components/workflow/nodes/_base/components/node-control.tsx +++ b/web/app/components/workflow/nodes/_base/components/node-control.tsx @@ -19,8 +19,6 @@ import { } from '@/app/components/base/icons/src/vender/line/mediaAndDevices' import Tooltip from '@/app/components/base/tooltip' import { useWorkflowStore } from '@/app/components/workflow/store' -import { useWorkflowRunValidation } from '@/app/components/workflow/hooks/use-checklist' -import Toast from '@/app/components/base/toast' type NodeControlProps = Pick const NodeControl: FC = ({ @@ -32,8 +30,6 @@ const NodeControl: FC = ({ const { handleNodeSelect } = useNodesInteractions() const workflowStore = useWorkflowStore() const isSingleRunning = data._singleRunningStatus === NodeRunningStatus.Running - const { warningNodes } = useWorkflowRunValidation() - const warningForNode = warningNodes.find(item => item.id === id) const handleOpenChange = useCallback((newOpen: boolean) => { setOpen(newOpen) }, []) @@ -55,14 +51,9 @@ const NodeControl: FC = ({ { canRunBySingle(data.type, isChildNode) && (
{ const action = isSingleRunning ? 'stop' : 'run' - if (!isSingleRunning && warningForNode) { - const message = warningForNode.errorMessage || t('workflow.panel.checklistTip') - Toast.notify({ type: 'error', message }) - return - } const store = workflowStore.getState() store.setInitShowLastRunTab(true) @@ -78,7 +69,7 @@ const NodeControl: FC = ({ ? : ( diff --git a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx index bc33a05f58..0d3aebd06d 100644 --- a/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx +++ b/web/app/components/workflow/nodes/_base/components/workflow-panel/index.tsx @@ -110,13 +110,8 @@ const BasePanel: FC = ({ const nodePanelWidth = useStore(s => s.nodePanelWidth) const otherPanelWidth = useStore(s => s.otherPanelWidth) const setNodePanelWidth = useStore(s => s.setNodePanelWidth) - const { - pendingSingleRun, - setPendingSingleRun, - } = useStore(s => ({ - pendingSingleRun: s.pendingSingleRun, - setPendingSingleRun: s.setPendingSingleRun, - })) + const pendingSingleRun = useStore(s => s.pendingSingleRun) + const setPendingSingleRun = useStore(s => s.setPendingSingleRun) const reservedCanvasWidth = 400 // Reserve the minimum visible width for the canvas