Skip to content

Commit

Permalink
#845 看板搜索修复&自定义业务配置编辑报错修复
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiawei committed Nov 21, 2024
1 parent dcdd9db commit 6353817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor-server/services/db/custom_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ func mergeArray(ids ...[]int) []int {

// 创建一个切片来存储重复的元素
var duplicates []int
// 遍历map,找到出现次数大于1的元素
// 遍历map,找到出现次数大于len(ids)的元素
for id, count := range countMap {
if count > 1 {
if count >= len(ids) {
duplicates = append(duplicates, id)
}
}
Expand Down

0 comments on commit 6353817

Please sign in to comment.