mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-19 10:08:12 +01:00
Fix request duplication
This commit is contained in:
@@ -646,7 +646,11 @@ const SidebarItem = forwardRef(function SidebarItem(
|
||||
label: 'Duplicate',
|
||||
hotkeyAction: 'request.duplicate',
|
||||
leftSlot: <Icon icon="copy" />,
|
||||
onSelect: () => duplicateRequest.mutate(),
|
||||
onSelect: () => {
|
||||
if (activeRequestId === itemId) {
|
||||
duplicateRequest.mutate();
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'deleteRequest',
|
||||
|
||||
Reference in New Issue
Block a user