From 81aa92fecc298d66eb420468316bcf7a7213171c Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Sun, 30 Nov 2025 17:12:17 +0900
Subject: (김준회) group 기능 추가, 기타 버그 수정, preset 기능추가, 테스트
 페이지 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/client-table/client-table-view-options.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'components/client-table/client-table-view-options.tsx')

diff --git a/components/client-table/client-table-view-options.tsx b/components/client-table/client-table-view-options.tsx
index b65049b4..3b659fcd 100644
--- a/components/client-table/client-table-view-options.tsx
+++ b/components/client-table/client-table-view-options.tsx
@@ -42,14 +42,21 @@ export function ClientTableViewOptions<TData>({
               typeof column.accessorFn !== "undefined" && column.getCanHide()
           )
           .map((column) => {
+            const header = column.columnDef.header
+            let label = column.id
+            if (typeof header === "string") {
+              label = header
+            }
+
             return (
               <DropdownMenuCheckboxItem
                 key={column.id}
                 className="capitalize"
                 checked={column.getIsVisible()}
                 onCheckedChange={(value) => column.toggleVisibility(!!value)}
+                onSelect={(e) => e.preventDefault()} // default action close the select menu.
               >
-                {column.id}
+                {label}
               </DropdownMenuCheckboxItem>
             )
           })}
-- 
cgit v1.2.3

