АРЧ АП11 - Архитектура после регресса: Архитектура: сохранить свежую дату при inventory root restore и очистить data-scope ответы от грязных лейблов
This commit is contained in:
@@ -56,8 +56,9 @@ export function createAssistantBoundaryPolicy(deps: AssistantBoundaryPolicyDeps)
|
||||
function buildAssistantDataScopeContractReply(scopeProbe: Record<string, unknown> | null = null): string {
|
||||
const organizations = Array.isArray(scopeProbe?.organizations)
|
||||
? scopeProbe.organizations
|
||||
.map((item) => String(item ?? "").trim())
|
||||
.map((item) => normalizeSelectedOrganization(item, deps.normalizeOrganizationScopeValue))
|
||||
.filter((item) => item.length > 0)
|
||||
.filter((item, index, array) => array.indexOf(item) === index)
|
||||
: [];
|
||||
|
||||
if (organizations.length === 1) {
|
||||
|
||||
Reference in New Issue
Block a user