fix: geçmiş arşiv kayıtları ana ekranı çökertiyordu
- SummaryCards/TenderList/DailyBulletin/ResultSearch/TenderCalendar: eklenmeZamani, baslik, kurum, ikn, tarih alanlarına güvenli erişim (arşiv kayıtlarında bu alanlar bulunmuyordu → TypeError, boş ekran) - history-store: arşiv kayıtlarına arayüzün beklediği varsayılan alanlar
This commit is contained in:
@@ -6,7 +6,7 @@ export const SummaryCards = () => {
|
||||
const { tenders, quickFilter, setQuickFilter, setActiveTab } = useApp();
|
||||
|
||||
const activeCount = tenders.filter(t => t.durum === 'Aktif').length;
|
||||
const todayCount = tenders.filter(t => t.eklenmeZamani.includes('önce') || t.eklenmeZamani.includes('az')).length;
|
||||
const todayCount = tenders.filter(t => (t.eklenmeZamani || '').includes('önce') || (t.eklenmeZamani || '').includes('az')).length;
|
||||
const trackedCount = tenders.filter(t => t.takipte).length;
|
||||
const sinceLastLoginCount = 14; // Mocked counter
|
||||
const unreadCount = tenders.filter(t => !t.incelendi).length;
|
||||
|
||||
Reference in New Issue
Block a user