From 8d92c88ab341156d82156bae49c62a8101280e75 Mon Sep 17 00:00:00 2001
From: 0-Zz-ang <s1998319@gmail.com>
Date: Tue, 29 Jul 2025 09:08:52 +0900
Subject: (박서영) 설계 Document Numbering Rule 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../combo-box-settings/table/combo-box-settings-table.tsx          | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'lib/docu-list-rule/combo-box-settings/table/combo-box-settings-table.tsx')

diff --git a/lib/docu-list-rule/combo-box-settings/table/combo-box-settings-table.tsx b/lib/docu-list-rule/combo-box-settings/table/combo-box-settings-table.tsx
index 356b2706..f6216363 100644
--- a/lib/docu-list-rule/combo-box-settings/table/combo-box-settings-table.tsx
+++ b/lib/docu-list-rule/combo-box-settings/table/combo-box-settings-table.tsx
@@ -1,6 +1,7 @@
 "use client"
 
 import * as React from "react"
+import { useRouter } from "next/navigation"
 import { useDataTable } from "@/hooks/use-data-table"
 import { DataTable } from "@/components/data-table/data-table"
 import { DataTableAdvancedToolbar } from "@/components/data-table/data-table-advanced-toolbar"
@@ -16,13 +17,15 @@ interface ComboBoxSettingsTableProps {
 }
 
 export function ComboBoxSettingsTable({ promises }: ComboBoxSettingsTableProps) {
+  const router = useRouter()
   const rawData = React.use(promises!)
   const [isDetailSheetOpen, setIsDetailSheetOpen] = React.useState(false)
   const [selectedCodeGroup, setSelectedCodeGroup] = React.useState<typeof codeGroups.$inferSelect | null>(null)
 
   const refreshData = React.useCallback(() => {
-    window.location.reload()
-  }, [])
+    // 전체 페이지 새로고침 대신 router.refresh() 사용 (성능 개선)
+    router.refresh()
+  }, [router])
 
   // Detail 버튼 클릭 핸들러
   const handleDetail = (codeGroup: typeof codeGroups.$inferSelect) => {
-- 
cgit v1.2.3

