fix workflow editor menu

This commit is contained in:
Ramnique Singh 2025-04-04 22:32:57 +05:30
parent 7688dfbf70
commit a9d32ea423

View file

@ -526,7 +526,7 @@ function reducer(state: State, action: Action): State {
const existingToolIndex = draft.workflow.tools.findIndex( const existingToolIndex = draft.workflow.tools.findIndex(
tool => tool.name === newTool.name tool => tool.name === newTool.name
); );
if (existingToolIndex !== -1) { if (existingToolIndex !== -1) {
// Replace existing tool // Replace existing tool
draft.workflow.tools[existingToolIndex] = newTool; draft.workflow.tools[existingToolIndex] = newTool;
@ -803,9 +803,7 @@ export function WorkflowEditor({
View versions View versions
</DropdownItem> </DropdownItem>
</DropdownSection> </DropdownSection>
<div className="border-t border-gray-200 dark:border-gray-700" />
<DropdownSection> <DropdownSection>
<DropdownItem <DropdownItem
key="clone" key="clone"
@ -814,7 +812,7 @@ export function WorkflowEditor({
> >
Clone this version Clone this version
</DropdownItem> </DropdownItem>
<DropdownItem <DropdownItem
key="publish" key="publish"
startContent={<div className="text-indigo-500"><RadioIcon size={16} /></div>} startContent={<div className="text-indigo-500"><RadioIcon size={16} /></div>}
@ -823,9 +821,7 @@ export function WorkflowEditor({
Make version live Make version live
</DropdownItem> </DropdownItem>
</DropdownSection> </DropdownSection>
<div className="border-t border-gray-200 dark:border-gray-700" />
<DropdownSection> <DropdownSection>
<DropdownItem <DropdownItem
key="clipboard" key="clipboard"