diff --git a/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.ts b/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.ts index 5a505b0a1..930979717 100644 --- a/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.ts +++ b/src/workbench/browser/src/app/pages/api/group/tree/api-group-tree.component.ts @@ -161,7 +161,7 @@ export class ApiGroupTreeComponent implements OnInit, OnDestroy { ]; } async createGroup({ name, projectID, content }) { - const groupID = await this.storageInstance.group.add({ name, projectID }); + const groupID = await this.storageInstance.group.add({ name: name.replace(/\.json$/, ''), projectID }); const result = content.apiData.map((it, index) => ({ ...it, groupID, uuid: Date.now() + index })); await this.storageInstance.apiData.bulkAdd(result); this.buildGroupTreeData();