fix:계좌 입출금내역 날짜 변경 시 자동조회 제거
- dateFrom/dateTo/selectedAccount 변경 시 자동 loadTransactions useEffect 제거 - 조회 버튼 클릭 시에만 조회 동작 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -817,15 +817,9 @@ className="w-full px-2 py-1 text-sm border border-stone-200 rounded focus:ring-2
|
||||
useEffect(() => {
|
||||
loadAccounts();
|
||||
loadAccountCodes();
|
||||
loadTransactions();
|
||||
}, []);
|
||||
|
||||
// 날짜 또는 계좌 변경 시 거래내역 로드
|
||||
useEffect(() => {
|
||||
if (dateFrom && dateTo) {
|
||||
loadTransactions();
|
||||
}
|
||||
}, [dateFrom, dateTo, selectedAccount]);
|
||||
|
||||
const loadAccounts = async () => {
|
||||
try {
|
||||
const response = await fetch(API.accounts);
|
||||
|
||||
Reference in New Issue
Block a user