From b50d28482b68d3bfdd2782a09d7eefeb671e135d Mon Sep 17 00:00:00 2001 From: Kent Wang Date: Thu, 9 Oct 2025 17:51:33 +0800 Subject: [PATCH] 1.fix type issue --- .../components/dropdowns/workspace-dropdown.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/insomnia/src/ui/components/dropdowns/workspace-dropdown.tsx b/packages/insomnia/src/ui/components/dropdowns/workspace-dropdown.tsx index c7f9412a0a..43f87c122a 100644 --- a/packages/insomnia/src/ui/components/dropdowns/workspace-dropdown.tsx +++ b/packages/insomnia/src/ui/components/dropdowns/workspace-dropdown.tsx @@ -290,6 +290,22 @@ export const WorkspaceDropdown: FC<{}> = () => { }, }, ]), + ...(activeWorkspace.scope === 'mock-server' + ? [ + { + id: 'generate-collection', + name: 'Generate Collection', + icon: , + action: () => { + generateCollectionFetcher.submit({ + organizationId, + projectId: activeWorkspace.parentId, + workspaceId: activeWorkspace._id, + }); + }, + }, + ] + : []), { id: 'settings', name: 'Settings',