diff options
| author | joonhoekim <26rote@gmail.com> | 2025-10-31 16:20:36 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-10-31 16:20:36 +0900 |
| commit | fd5ff7a9eaea4baeacc3f4bec8254925d63bf255 (patch) | |
| tree | 47cf70971fde8145cb5a413ff76e966c296b8e48 /components/vendor-data | |
| parent | 79f35bcd4974d54d548488562a6da57ad70bc2e8 (diff) | |
(김준회) EDP 폼리스트 오름차순 정렬 요구사항 처리 (스마트엑셀 000126)
Diffstat (limited to 'components/vendor-data')
| -rw-r--r-- | components/vendor-data/sidebar.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/components/vendor-data/sidebar.tsx b/components/vendor-data/sidebar.tsx index edaf2e25..941dbb38 100644 --- a/components/vendor-data/sidebar.tsx +++ b/components/vendor-data/sidebar.tsx @@ -205,7 +205,9 @@ export function Sidebar({ (No forms loaded) </p> ) : ( - forms.map((form) => { + forms + .sort((a, b) => a.formName.localeCompare(b.formName)) + .map((form) => { const isFormActive = form.formCode === currentFormCode const isDisabled = currentItemId === null @@ -280,7 +282,9 @@ export function Sidebar({ No forms available </p> ) : ( - forms.map((form) => { + forms + .sort((a, b) => a.formName.localeCompare(b.formName)) + .map((form) => { const isFormPackageActive = pkg.itemId === currentItemId && form.formCode === currentFormCode |
