Skip to content

Commit

Permalink
added filter group to the filename
Browse files Browse the repository at this point in the history
  • Loading branch information
emre2038 authored and milafrerichs committed Nov 27, 2020
1 parent 0982d41 commit 8eff252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/profile/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class Chart extends Observable {
}[index];
self.triggerEvent(`profile.chart.download_${downloadFn['type']}`, self);

let fileName = self.selectedFilter === null || self.selectedGroup === null ? `${self.title}` : `${self.title} - by ${self.selectedGroup} - ${self.selectedFilter}`;
let fileName = self.selectedGroup === null ? `${self.title}` : `${self.title} - by ${self.selectedGroup} - ${self.selectedFilter}`;
downloadFn.fn(fileName);
})
});
Expand Down

0 comments on commit 8eff252

Please sign in to comment.