fix: Run workflow if active and single webhook service has pin data (#12425)

This commit is contained in:
Michael Kret
2025-01-06 11:11:36 +02:00
committed by GitHub
parent 452a7bfe2c
commit 8053a4a176
2 changed files with 54 additions and 1 deletions

View File

@@ -240,7 +240,11 @@ export function useRunWorkflow(useRunWorkflowOpts: { router: ReturnType<typeof u
SINGLE_WEBHOOK_TRIGGERS.includes(node.type),
);
if (singleWebhookTrigger && workflowsStore.isWorkflowActive) {
if (
singleWebhookTrigger &&
workflowsStore.isWorkflowActive &&
!workflowData.pinData?.[singleWebhookTrigger.name]
) {
toast.showMessage({
title: i18n.baseText('workflowRun.showError.deactivate'),
message: i18n.baseText('workflowRun.showError.productionActive', {