mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-20 22:43:52 +00:00
UBERF-10637: Fix duplication on github with few integerations added (#8970)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
b1120d63c1
commit
ede948676f
@ -807,7 +807,8 @@ export class PlatformWorker {
|
||||
}
|
||||
|
||||
async getWorkspaces (): Promise<WorkspaceUuid[]> {
|
||||
return this.integrations.map((it) => it.workspace)
|
||||
// Since few integeration could map into one workspace, we need to deduplicate
|
||||
return Array.from(new Set(this.integrations.map((it) => it.workspace)))
|
||||
}
|
||||
|
||||
checkedWorkspaces = new Set<string>()
|
||||
|
Loading…
Reference in New Issue
Block a user