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
This commit is contained in:
Junyi 2025-03-27 00:37:46 +08:00 committed by GitHub
parent d94bb4a390
commit d13261f890
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -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();

View File

@ -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<HTMLSpanElement>) => {
event.preventDefault();
event.stopPropagation();
}, []);
const { color } = ExecutionStatusOptionsMap[props.value] ?? {};
return (
<Tag color={color} onMouseDown={onPreventMouseDown} closable={props.closable} onClose={props.onClose}>
<Tag color={color} closable={props.closable} onClose={props.onClose}>
{label}
</Tag>
);