forked from baron/baron-sso
코드체크 업데이트
This commit is contained in:
@@ -46,9 +46,7 @@ describe("hanmac family organization order", () => {
|
||||
|
||||
it("does not rank generic technical centers as GPDTDC", () => {
|
||||
expect(
|
||||
getHanmacFamilyTenantOrderRank(
|
||||
tenant("기술개발센터", "rnd-center"),
|
||||
),
|
||||
getHanmacFamilyTenantOrderRank(tenant("기술개발센터", "rnd-center")),
|
||||
).toBe(Number.MAX_SAFE_INTEGER);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -51,10 +51,9 @@ function tenantToPickerNode(
|
||||
tenant: TenantNode,
|
||||
usersBySlug: Map<string, UserSummary[]>,
|
||||
): OrgPickerTreeNode {
|
||||
const tenantChildren = orderHanmacFamilyChildren(
|
||||
tenant,
|
||||
tenant.children,
|
||||
).map((child) => tenantToPickerNode(child, usersBySlug));
|
||||
const tenantChildren = orderHanmacFamilyChildren(tenant, tenant.children).map(
|
||||
(child) => tenantToPickerNode(child, usersBySlug),
|
||||
);
|
||||
const userChildren = (usersBySlug.get(tenant.slug.toLowerCase()) || []).map(
|
||||
(user) => ({
|
||||
type: "user" as const,
|
||||
|
||||
@@ -1032,12 +1032,11 @@ export function buildOrgSelectionOptions(
|
||||
(familyRoot?.children ?? []).filter((node) =>
|
||||
["COMPANY_GROUP", "COMPANY", "ORGANIZATION"].includes(node.type),
|
||||
),
|
||||
)
|
||||
.map((node) => ({
|
||||
descendants: collectOrgSelectionDescendants(node, 2),
|
||||
id: node.id,
|
||||
label: node.name,
|
||||
}));
|
||||
).map((node) => ({
|
||||
descendants: collectOrgSelectionDescendants(node, 2),
|
||||
id: node.id,
|
||||
label: node.name,
|
||||
}));
|
||||
}
|
||||
|
||||
function getOrgSelectionLabel(
|
||||
|
||||
Reference in New Issue
Block a user