NEXT_PUBLIC_CM_LOGIN_PAGE_URL 삭제 및 common-codes 수정
This commit is contained in:
@@ -403,6 +403,17 @@ export const codeActionExport: (set: any, get:any) => comCodeActions = (set: any
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
// 서버(/api/common-codes)에서 조회에 실패해 빈 목록으로 온 항목을 개발자 도구 콘솔에 표시한다.
|
||||
const failedCodes: { label: string; reason: string }[] =
|
||||
Array.isArray(data.failedCodes) ? data.failedCodes : [];
|
||||
if (failedCodes.length > 0) {
|
||||
console.error(
|
||||
`[공통코드] ${failedCodes.length}건 조회 실패(빈 목록으로 표시됨):`,
|
||||
failedCodes.map((it) => it.label).join(", "),
|
||||
);
|
||||
console.table(failedCodes);
|
||||
}
|
||||
|
||||
lwCds["rainFcltCd"] = data.rainFcltCd ?? lwCds["rainFcltCd"] ?? [];
|
||||
lwCds["bdstUsgCd"] = data.bdstUsgCd ?? lwCds["bdstUsgCd"] ?? [];
|
||||
lwCds["orgwtKndCd"] = data.orgwtKndCd ?? lwCds["orgwtKndCd"] ?? [];
|
||||
|
||||
Reference in New Issue
Block a user