fix:카드 사용내역 날짜 변경 시 자동조회 제거
- dateFrom/dateTo/selectedCard 변경 시 자동 loadTransactions useEffect 제거 - 조회 버튼 클릭 시에만 조회 동작 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -940,15 +940,9 @@ className="text-xs text-amber-600 hover:text-amber-700 underline"
|
||||
useEffect(() => {
|
||||
loadCards();
|
||||
loadAccountCodes();
|
||||
loadTransactions();
|
||||
}, []);
|
||||
|
||||
// 날짜 또는 카드 변경 시 거래내역 로드
|
||||
useEffect(() => {
|
||||
if (dateFrom && dateTo) {
|
||||
loadTransactions();
|
||||
}
|
||||
}, [dateFrom, dateTo, selectedCard]);
|
||||
|
||||
const loadCards = async () => {
|
||||
try {
|
||||
const response = await fetch(API.cards);
|
||||
|
||||
Reference in New Issue
Block a user