diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserRoleRelationService.java b/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserRoleRelationService.java index 659cc67ca9..309dce324c 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserRoleRelationService.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserRoleRelationService.java @@ -141,7 +141,7 @@ public class UserRoleRelationService { if (organization != null) { returnMap.computeIfAbsent(organization, k -> new ArrayList<>()); Project project = projectMapper.selectByPrimaryKey(userRoleRelation.getSourceId()); - if (project != null) { + if (project != null && !returnMap.get(organization).contains(project)) { returnMap.get(organization).add(project); } } diff --git a/frontend/src/views/bug-management/components/deleteModal.vue b/frontend/src/views/bug-management/components/deleteModal.vue index 699e010fa9..26ce4055fa 100644 --- a/frontend/src/views/bug-management/components/deleteModal.vue +++ b/frontend/src/views/bug-management/components/deleteModal.vue @@ -9,12 +9,7 @@