summaryrefslogtreecommitdiff
path: root/lib/docu-list-rule/combo-box-settings/table/combo-box-options-detail-sheet.tsx
diff options
context:
space:
mode:
author0-Zz-ang <s1998319@gmail.com>2025-07-29 09:08:52 +0900
committer0-Zz-ang <s1998319@gmail.com>2025-07-29 09:11:22 +0900
commit8d92c88ab341156d82156bae49c62a8101280e75 (patch)
tree065ed1838de4164da23e3777b5367143e4f13982 /lib/docu-list-rule/combo-box-settings/table/combo-box-options-detail-sheet.tsx
parent75249e6fa46864f49d4eb91bd755171b6b65eaae (diff)
(박서영) 설계 Document Numbering Rule 수정
Diffstat (limited to 'lib/docu-list-rule/combo-box-settings/table/combo-box-options-detail-sheet.tsx')
-rw-r--r--lib/docu-list-rule/combo-box-settings/table/combo-box-options-detail-sheet.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/docu-list-rule/combo-box-settings/table/combo-box-options-detail-sheet.tsx b/lib/docu-list-rule/combo-box-settings/table/combo-box-options-detail-sheet.tsx
index 1c145c55..0b2a76a4 100644
--- a/lib/docu-list-rule/combo-box-settings/table/combo-box-options-detail-sheet.tsx
+++ b/lib/docu-list-rule/combo-box-settings/table/combo-box-options-detail-sheet.tsx
@@ -88,13 +88,12 @@ export function ComboBoxOptionsDetailSheet({
const result = await getComboBoxOptions(codeGroup.id, {
page: 1,
perPage: 10,
- search: "",
- sort: [{ id: "createdAt", desc: true }],
- filters: [],
+ search: table.getState().globalFilter || "",
+ sort: table.getState().sorting,
+ filters: table.getState().columnFilters,
joinOperator: "and",
})
if (result.success && result.data) {
- // isActive 필드가 없는 경우 기본값 true로 설정
const optionsWithIsActive = result.data.map(option => ({
...option,
isActive: (option as any).isActive ?? true
@@ -126,6 +125,7 @@ export function ComboBoxOptionsDetailSheet({
enableAdvancedFilter: true,
manualSorting: true,
manualFiltering: true,
+ manualPagination: true, // 수동 페이징 활성화
initialState: {
sorting: [{ id: "createdAt", desc: true }],
columnPinning: { right: ["actions"] },