1.fix type issue

This commit is contained in:
Kent Wang
2025-10-09 17:51:33 +08:00
parent 91f337c210
commit b50d28482b

View File

@@ -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',