diff --git a/app/components/campaign/-analytics.js b/app/components/campaign/-analytics.js index 66c8226..b12246f 100644 --- a/app/components/campaign/-analytics.js +++ b/app/components/campaign/-analytics.js @@ -6,6 +6,7 @@ export default Component.extend({ classNames: ['card', 'mb-3'], campaignAnalytics: service(), + isNew: false, campaignId: null, form: null, loading: false, @@ -19,11 +20,13 @@ export default Component.extend({ actions: { loadAnalytics() { + if (this.get('isNew')) { + return; + } this.set('loading', true); this.get('campaignAnalytics').retrieve(this.get('campaignId'), this.get('form.identifier')) .then((report) => { this.set('report', report); - console.info(report); }) .finally(() => this.set('loading', false)) ; diff --git a/app/templates/components/campaign/email-signup/manage.hbs b/app/templates/components/campaign/email-signup/manage.hbs index 4cc58ff..e734eba 100644 --- a/app/templates/components/campaign/email-signup/manage.hbs +++ b/app/templates/components/campaign/email-signup/manage.hbs @@ -57,7 +57,7 @@