Skip to content

Commit

Permalink
small regression, unique didn't remember selection
Browse files Browse the repository at this point in the history
  • Loading branch information
rueckstiess committed Aug 20, 2015
1 parent 9289b3a commit a7a8ce1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/minicharts/querybuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ module.exports = {
* @return {Object} message no changes on message, just pass it through for consistency
*/
updateUI_distinct: function(message) {
// in case message was not submitted (e.g. from unique minicharts), reconstruct it here
if (!message) {
message = {
selected: this.selectedValues,
elements: this.queryAll('.selectable')
};
}
_.each(message.elements, function(el) {
var elData = el.innerText || d3.select(el).data()[0].value;
if (this.model.getType() === 'Number') {
Expand Down

0 comments on commit a7a8ce1

Please sign in to comment.