High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Fix incorrect campaign counts on dashboard
Kailash Nadh08717528c506
diff --git a/frontend/my/src/Dashboard.js b/frontend/my/src/Dashboard.jsindex 7a3da08c..f899e64c 100644--- a/frontend/my/src/Dashboard.js+++ b/frontend/my/src/Dashboard.js@@ -104,10 +104,15 @@ class Dashboard extends React.PureComponent {<Col span={ 6 } offset={ 2 }><Card title="Campaigns" bordered={ false } className="campaign-counts">- { this.campaignTypes.map((key, count) =>+ { this.campaignTypes.map((key) =><Row key={ `stats-campaigns-${ key }` }><Col span={ 18 }><h1 className="name">{ key }</h1></Col>- <Col span={ 6 }><h1 className="count">{ count }</h1></Col>+ <Col span={ 6 }>+ <h1 className="count">+ { this.state.stats.campaigns.hasOwnProperty(key) ?+ this.state.stats.campaigns[key] : 0 }+ </h1>+ </Col></Row>)}</Card>