From d13261f890b8a4d823c68a2f2746eb574fa4bf40 Mon Sep 17 00:00:00 2001 From: Junyi Date: Thu, 27 Mar 2025 00:37:46 +0800 Subject: [PATCH] fix(plugin-workflow): fix error thrown when configure auto delete options (#6560) * fix(plugin-workflow): fix error thrown when configure auto delete options * fix(plugin-workflow): fix e2e test case --- .../__e2e__/conditionNode/continueWhenYesBasicType.test.ts | 1 + .../src/client/components/ExecutionStatus.tsx | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts index bcaf8eea83..6ea04d0961 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/__e2e__/conditionNode/continueWhenYesBasicType.test.ts @@ -446,6 +446,7 @@ test('Collection event add data trigger, determine trigger node integer variable `Trigger variables / Trigger data / ${triggerNodeFieldDisplayName}`, ); await page.getByLabel('variable-button').nth(1).click(); + await page.waitForTimeout(200); await page.getByRole('menuitemcheckbox', { name: 'Node result' }).click(); await page.getByRole('menuitemcheckbox', { name: preQueryRecordNodeTitle }).click(); await page.getByRole('menuitemcheckbox', { name: triggerNodeFieldDisplayName }).click(); diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx b/packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx index 7d2965b686..543b7310ef 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/components/ExecutionStatus.tsx @@ -20,13 +20,9 @@ import { lang } from '../locale'; function LabelTag(props) { const compile = useCompile(); const label = compile(props.label); - const onPreventMouseDown = useCallback((event: React.MouseEvent) => { - event.preventDefault(); - event.stopPropagation(); - }, []); const { color } = ExecutionStatusOptionsMap[props.value] ?? {}; return ( - + {label} );