From 40250c61031263606dd073ce7056a3e8e27f18d0 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 14 Oct 2025 14:25:28 +0900
Subject: (김준회) AVL 구매요구사항 수정 - AVL 상세 엑셀 익스포트 추가 - 레코드
 이동 멀티선택 추가 - 최종확정처리 오류 수정 - 프로젝트 AVL에 H/T 구분 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/avl/table/standard-avl-table-columns.tsx | 30 +++++++---------------------
 1 file changed, 7 insertions(+), 23 deletions(-)

(limited to 'lib/avl/table/standard-avl-table-columns.tsx')

diff --git a/lib/avl/table/standard-avl-table-columns.tsx b/lib/avl/table/standard-avl-table-columns.tsx
index 903d2590..650220f5 100644
--- a/lib/avl/table/standard-avl-table-columns.tsx
+++ b/lib/avl/table/standard-avl-table-columns.tsx
@@ -16,29 +16,13 @@ export const standardAvlColumns: ColumnDef<StandardAvlItem>[] = [
                 aria-label="Select all"
             />
         ),
-        cell: ({ row, table }) => {
-            // 선종별 표준 AVL 테이블의 단일 선택 핸들러
-            const handleRowSelection = (checked: boolean) => {
-                if (checked) {
-                    // 다른 모든 행의 선택 해제
-                    table.getRowModel().rows.forEach(r => {
-                        if (r !== row && r.getIsSelected()) {
-                            r.toggleSelected(false)
-                        }
-                    })
-                }
-                // 현재 행 선택/해제
-                row.toggleSelected(checked)
-            }
-
-            return (
-                <Checkbox
-                    checked={row.getIsSelected()}
-                    onCheckedChange={handleRowSelection}
-                    aria-label="Select row"
-                />
-            )
-        },
+        cell: ({ row }) => (
+            <Checkbox
+                checked={row.getIsSelected()}
+                onCheckedChange={(value) => row.toggleSelected(!!value)}
+                aria-label="Select row"
+            />
+        ),
         enableSorting: false,
         enableHiding: false,
         size: 50,
-- 
cgit v1.2.3

