[ST] - 공단 오류 및 개선 요청사항 처리
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useCallback, useRef, useState } from "react";
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
|
||||
import { useAlertStore } from "@/shared/lib";
|
||||
import { statisticsApi } from "@/entities/statistics/api/statistics-service";
|
||||
@@ -115,6 +115,14 @@ const StatisticsInputManagement = () => {
|
||||
setRowData([]);
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const defaultYear = String(new Date().getFullYear() - 1);
|
||||
void handleSearch({
|
||||
year: defaultYear,
|
||||
clsfCd: "ALL",
|
||||
});
|
||||
}, []);
|
||||
|
||||
const handleRegisterClick = () => {
|
||||
const yr =
|
||||
searchFormValues?.year ?? lastSearchRef.current?.year ?? "";
|
||||
|
||||
Reference in New Issue
Block a user