Skip to content
Snippets Groups Projects
Commit 11368504 authored by Tom Robinson's avatar Tom Robinson
Browse files

Merge pull request #512 from metabase/qb_agreggation_sort

Fix sort widget on query builder doesn't show aggregation columns
parents 1b51ebd4 55f969da
No related branches found
No related tags found
No related merge requests found
'use strict';
/*global _ */
import OnClickOutside from 'react-onclickoutside';
......@@ -115,11 +116,11 @@ export default React.createClass({
render: function() {
var selection;
this.props.items.map(function (item) {
if(item && item[this.props.selectedKey] === this.props.selectedValue) {
this.props.items.forEach(function (item) {
if(item && _.isEqual(item[this.props.selectedKey], this.props.selectedValue)) {
selection = item[this.props.display];
}
}.bind(this));
}, this);
var placeholder = selection || this.props.placeholder,
searchBar,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment