diff --git a/packages/plugins/workflow/src/client/WorkflowCanvas.tsx b/packages/plugins/workflow/src/client/WorkflowCanvas.tsx index 232e1a490..e1477538c 100644 --- a/packages/plugins/workflow/src/client/WorkflowCanvas.tsx +++ b/packages/plugins/workflow/src/client/WorkflowCanvas.tsx @@ -141,22 +141,21 @@ export function WorkflowCanvas() { onClick={onSwitchVersion} defaultSelectedKeys={[`${workflow.id}`]} className={cx(workflowVersionDropdownClass)} - > - {revisions.sort((a, b) => b.id - a.id).map((item, index) => ( - : null} - className={classnames({ + items={revisions.sort((a, b) => b.id - a.id).map((item, index) => ({ + key: `${item.id}`, + icon: item.current ? : null, + label: ( + - {`#${item.id}`} - - - ))} - + })}> + {`#${item.id}`} + + + ) + }))} + /> } >