remove useless date constructor
parent
b79ccbb1af
commit
9a45a43b7a
|
@ -353,7 +353,7 @@ export class WarDetailComponent {
|
||||||
[this.tmpPointData, this.tmpBudgetData, this.tmpTransportData, this.tmpReviveData, this.tmpStabilizeData,
|
[this.tmpPointData, this.tmpBudgetData, this.tmpTransportData, this.tmpReviveData, this.tmpStabilizeData,
|
||||||
this.tmpKillData, this.tmpFrienlyFireData, this.tmpFlagCaptureData].forEach(tmp => {
|
this.tmpKillData, this.tmpFrienlyFireData, this.tmpFlagCaptureData].forEach(tmp => {
|
||||||
for (let j in [0, 1]) {
|
for (let j in [0, 1]) {
|
||||||
if (new Date(tmp[j].series[tmp[j].series.length - 1].name) < endDate) {
|
if (tmp[j].series[tmp[j].series.length - 1].name < endDate) {
|
||||||
tmp[j].series.push({
|
tmp[j].series.push({
|
||||||
'name': endDate,
|
'name': endDate,
|
||||||
'value': tmp[j].series[tmp[j].series.length - 1].value
|
'value': tmp[j].series[tmp[j].series.length - 1].value
|
||||||
|
|
Loading…
Reference in New Issue