mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-18 21:29:41 -04:00
1.fix type issue
This commit is contained in:
@@ -290,6 +290,22 @@ export const WorkspaceDropdown: FC<{}> = () => {
|
||||
},
|
||||
},
|
||||
]),
|
||||
...(activeWorkspace.scope === 'mock-server'
|
||||
? [
|
||||
{
|
||||
id: 'generate-collection',
|
||||
name: 'Generate Collection',
|
||||
icon: <Icon icon="code" />,
|
||||
action: () => {
|
||||
generateCollectionFetcher.submit({
|
||||
organizationId,
|
||||
projectId: activeWorkspace.parentId,
|
||||
workspaceId: activeWorkspace._id,
|
||||
});
|
||||
},
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{
|
||||
id: 'settings',
|
||||
name: 'Settings',
|
||||
|
||||
Reference in New Issue
Block a user