From 2e3aacd22d4a385b351d8b6486badb527bdb7ab9 Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Thu, 5 Mar 2020 07:28:17 -0600 Subject: [PATCH] Remove Unused Variable (#1774) The timeline_series_data variable is created twice before using it. This resolves that. --- static/js/src/app/campaign_results.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/static/js/src/app/campaign_results.js b/static/js/src/app/campaign_results.js index 826ffa1b..36bb3bf6 100644 --- a/static/js/src/app/campaign_results.js +++ b/static/js/src/app/campaign_results.js @@ -634,15 +634,6 @@ function poll() { campaign = c /* Update the timeline */ var timeline_series_data = [] - $.each(campaign.timeline, function (i, event) { - var event_date = moment.utc(event.time).local() - timeline_series_data.push({ - email: event.email, - x: event_date.valueOf(), - y: 1 - }) - }) - var timeline_series_data = [] $.each(campaign.timeline, function (i, event) { var event_date = moment.utc(event.time).local() timeline_series_data.push({