Skip to content

Commit

Permalink
fix: clusterGenerator access title before init (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvictorsoto authored Mar 18, 2020
1 parent 3929dab commit 81eab11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline/component/ClusterGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ export default class ClusterGenerator {
toTime: this.itemSet.body.util.toTime
};

const clusterContent = '<div title="' + title + '">' + clusterItems.length + '</div>';
const title = titleTemplate.replace(/{count}/, clusterItems.length);
const clusterContent = '<div title="' + title + '">' + clusterItems.length + '</div>';
const clusterOptions = Object.assign({}, options, this.itemSet.options);
const data = {
'content': clusterContent,
Expand Down

0 comments on commit 81eab11

Please sign in to comment.