Skip to content

Commit

Permalink
Fix compare filling of the start of period
Browse files Browse the repository at this point in the history
  • Loading branch information
diamond-darrell committed Jan 29, 2019
1 parent d62a069 commit 1411ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/services/compare.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class CompareService implements OnDestroy {

if (!config.fields[graph.id].nonDateGraphLabel) {
let fromDate = DateFilterUtils.parseDateString(currentPeriod.from);
let currentDate = DateFilterUtils.parseDateString((compareData[0] || '').split(analyticsConfig.valueSeparator)[0] || '');
let currentDate = DateFilterUtils.parseDateString((currentData[0] || '').split(analyticsConfig.valueSeparator)[0] || '');

if (reportInterval === KalturaReportInterval.days) {
fromDate = fromDate.clone().startOf('day');
Expand Down

0 comments on commit 1411ba4

Please sign in to comment.