From b41814ed0c61689e5d355db8305fbdf09bf8c984 Mon Sep 17 00:00:00 2001 From: bicochan Date: Mon, 13 Jul 2026 12:01:17 +0900 Subject: [PATCH] =?UTF-8?q?[as]=20chore:=20=EC=B2=B4=ED=81=AC=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=A0=95=EB=A0=AC=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0=20(=EC=84=9C=EB=B2=84=EC=97=90=20=EC=9C=84?= =?UTF-8?q?=EC=9E=84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../widgets/pbadms-sprt/lib/checklist-form-utils.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/apps/as/src/widgets/pbadms-sprt/lib/checklist-form-utils.ts b/apps/as/src/widgets/pbadms-sprt/lib/checklist-form-utils.ts index f49782d84..2c43aca43 100644 --- a/apps/as/src/widgets/pbadms-sprt/lib/checklist-form-utils.ts +++ b/apps/as/src/widgets/pbadms-sprt/lib/checklist-form-utils.ts @@ -26,16 +26,6 @@ interface CklstResultListItem { picRvwCn?: string | null; } -function compareCklstSiblings(a: CklstTreeNode, b: CklstTreeNode): number { - if (a.cklstArtclSn !== b.cklstArtclSn) { - return a.cklstArtclSn - b.cklstArtclSn; - } - if (a.sortSeq !== b.sortSeq) { - return b.sortSeq - a.sortSeq; - } - return a.cklstRvwSn - b.cklstRvwSn; -} - export function orderCklstTreeNodes(rows: CklstTreeNode[]): CklstTreeNode[] { const childMap = new Map(); @@ -45,8 +35,6 @@ export function orderCklstTreeNodes(rows: CklstTreeNode[]): CklstTreeNode[] { childMap.get(parent)!.push(row); }); - childMap.forEach((siblings) => siblings.sort(compareCklstSiblings)); - const ordered: CklstTreeNode[] = []; function walk(parent: number | null) {