Remove Unused Variable (#1774)

The timeline_series_data variable is created twice before using it. This resolves that.
pull/1785/head
Jordan Wright 2020-03-05 07:28:17 -06:00 committed by GitHub
parent 8162a80cb1
commit 2e3aacd22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -634,15 +634,6 @@ function poll() {
campaign = c campaign = c
/* Update the timeline */ /* Update the timeline */
var timeline_series_data = [] 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) { $.each(campaign.timeline, function (i, event) {
var event_date = moment.utc(event.time).local() var event_date = moment.utc(event.time).local()
timeline_series_data.push({ timeline_series_data.push({