[ST] - fix: 취약점 점검 관련 조치

This commit is contained in:
2026-09-07 14:26:00 +09:00
parent 8039ab8281
commit a7fd6a8e16
6 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -955,7 +955,7 @@ const DataGrid = ({
try {
gv.commit?.();
} catch {
/* ignore */
console.error('commit error');
}
const ds = gv.getDataSource();
if (!ds) return rowDataRef.current.map((r) => ({ ...r }));
@@ -1954,7 +1954,7 @@ useEffect(() => {
}
| undefined;
if (!gv?.getDataSource) return [];
try { gv.commit?.(); } catch { /* ignore */ }
try { gv.commit?.(); } catch { console.error('commit error'); }
const ds = gv.getDataSource();
if (!ds) return [];
const cnt = ds.getRowCount();
@@ -2022,7 +2022,7 @@ useEffect(() => {
column.footer.styleName = styleName;
}
} catch {
/* ignore */
console.error('총계 스타일 재적용/초기화 error');
}
});
gridView.refresh?.();
@@ -104,7 +104,7 @@ function safeGridViewRefresh(gv: { refresh?: () => void } | null | undefined) {
try {
gv.refresh();
} catch {
/* noop */
console.error('refresh error');
}
}
@@ -68,7 +68,7 @@ function setRowCheckByItemIndex(
try {
gv?.checkItem?.(itemIndex, checked, false);
} catch {
/* RealGrid 체크 API 미지원 등 */
console.error('RealGrid 체크 API error');
}
}
@@ -91,7 +91,7 @@ function uncheckGridRow(gridRef: MutableRefObject<RealGridReact | null>, itemInd
try {
(gridRef.current?.gridView as GridViewWithCheckApi | undefined)?.checkItem?.(itemIndex, false, false);
} catch {
/* ignore */
console.error('RealGrid 체크 API error');
}
}
@@ -103,7 +103,7 @@ export function ReviewOpinionDialog({
resetForm();
onOpenChange(false);
} catch {
/* 저장 실패 시 부모에서 alert 후 throw — 다이얼로그는 유지 */
console.error('검토 의견 저장 error');
} finally {
setIsSaving(false);
}
@@ -24,8 +24,8 @@ function LoginPage() {
await authService.login({ userId, password });
try {
await statisticsApi.refreshAllCommonCodes();
} catch {
// 로그인 성공 후 캐시 동기화 실패는 진입을 막지 않음
} catch(error) {
console.error('로그인 실패');
}
window.location.href = "/statistics";
} catch (error) {