From 1064397be235ba939a56bd10a82cbe581d6dd8f4 Mon Sep 17 00:00:00 2001 From: kjs Date: Thu, 19 Mar 2026 09:47:15 +0900 Subject: [PATCH] fix: update required field handling in V2Repeater and RepeaterTable components - Modified the logic in the V2Repeater component to determine required fields based on the isNullable property, enhancing validation accuracy. - Updated the RepeaterTable component to visually indicate required fields with an asterisk, improving user awareness during data entry. These changes aim to enhance data validation and user experience by ensuring that required fields are clearly marked and accurately validated. --- frontend/components/v2/V2Repeater.tsx | 2 +- .../registry/components/modal-repeater-table/RepeaterTable.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/components/v2/V2Repeater.tsx b/frontend/components/v2/V2Repeater.tsx index 9290f21c..31a80c18 100644 --- a/frontend/components/v2/V2Repeater.tsx +++ b/frontend/components/v2/V2Repeater.tsx @@ -720,7 +720,7 @@ export const V2Repeater: React.FC = ({ displayName: col.displayName || col.display_name || col.label || name, detailSettings: col.detailSettings || col.detail_settings, categoryRef: typeInfo?.categoryRef || null, - isRequired: col.isRequired || col.is_required || col.notNull || col.not_null === true || col.not_null === 'Y' || col.not_null === 'y', + isRequired: col.isNullable === 'NO' || col.is_nullable === 'NO' || col.isRequired || col.is_required || col.notNull || col.not_null === true || col.not_null === 'Y' || col.not_null === 'y', }; }); setCurrentTableColumnInfo(columnMap); diff --git a/frontend/lib/registry/components/modal-repeater-table/RepeaterTable.tsx b/frontend/lib/registry/components/modal-repeater-table/RepeaterTable.tsx index 4b8cb23d..e9df58d5 100644 --- a/frontend/lib/registry/components/modal-repeater-table/RepeaterTable.tsx +++ b/frontend/lib/registry/components/modal-repeater-table/RepeaterTable.tsx @@ -792,6 +792,7 @@ export function RepeaterTable({ {/* 컬럼명 - 선택된 옵션라벨 형식으로 표시 */} {activeOption?.headerLabel || `${col.label} - ${activeOption?.label || ""}`} + {col.required && *}