Add debugging logs for article and media outlet counts on the main page
Add console logs to client/src/components/MainContent.tsx to display article counts per media outlet and other related statistics for debugging purposes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 0fb68265-c270-4198-9584-3d9be9bddb41 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/0fb68265-c270-4198-9584-3d9be9bddb41/16cZmxV
This commit is contained in:
@ -53,6 +53,13 @@ export default function MainContent() {
|
|||||||
acc[article.mediaOutletId] = (acc[article.mediaOutletId] || 0) + 1;
|
acc[article.mediaOutletId] = (acc[article.mediaOutletId] || 0) + 1;
|
||||||
return acc;
|
return acc;
|
||||||
}, {} as Record<string, number>);
|
}, {} as Record<string, number>);
|
||||||
|
|
||||||
|
console.log('📊 Article Count Debug:', {
|
||||||
|
totalArticles: allArticles.length,
|
||||||
|
totalOutlets: allOutlets.length,
|
||||||
|
articleCountByOutlet,
|
||||||
|
outletsWithArticles: Object.keys(articleCountByOutlet).length
|
||||||
|
});
|
||||||
|
|
||||||
// Group outlets by category and sort
|
// Group outlets by category and sort
|
||||||
const getOutletsByCategory = (category: string) => {
|
const getOutletsByCategory = (category: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user