From 52d5f219e1f38dccd8ca9f4f26537133a452425d Mon Sep 17 00:00:00 2001 From: zhsama Date: Thu, 16 Oct 2025 14:24:17 +0800 Subject: [PATCH] fix(workflow): include trigger node type in available blocks check --- web/app/components/workflow/hooks/use-available-blocks.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/hooks/use-available-blocks.ts b/web/app/components/workflow/hooks/use-available-blocks.ts index b4e037d29f..e1a1919afd 100644 --- a/web/app/components/workflow/hooks/use-available-blocks.ts +++ b/web/app/components/workflow/hooks/use-available-blocks.ts @@ -21,7 +21,9 @@ export const useAvailableBlocks = (nodeType?: BlockEnum, inContainer?: boolean) } = useNodesMetaData() const availableNodesType = useMemo(() => availableNodes.map(node => node.metaData.type), [availableNodes]) const availablePrevBlocks = useMemo(() => { - if (!nodeType || nodeType === BlockEnum.Start || nodeType === BlockEnum.DataSource) + if (!nodeType || nodeType === BlockEnum.Start || nodeType === BlockEnum.DataSource + || nodeType === BlockEnum.TriggerPlugin || nodeType === BlockEnum.TriggerWebhook + || nodeType === BlockEnum.TriggerSchedule) return [] return availableNodesType