Skip to content
Snippets Groups Projects
Commit afacf7c5 authored by Cam Saul's avatar Cam Saul
Browse files

better var name :heart_eyes_cat:

parent f42fe988
Branches
Tags
No related merge requests found
......@@ -176,9 +176,9 @@ var GuiQueryEditor = React.createClass({
},
canSortByAggregateField: function() {
const VALID_AGGREGATION_TYPES = new Set(["avg", "count", "distinct", "stddev", "sum"]);
const SORTABLE_AGGREGATION_TYPES = new Set(["avg", "count", "distinct", "stddev", "sum"]);
return this.hasValidBreakout() && VALID_AGGREGATION_TYPES.has(this.props.query.query.aggregation[0]);
return this.hasValidBreakout() && SORTABLE_AGGREGATION_TYPES.has(this.props.query.query.aggregation[0]);
},
addDimension: function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment