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

Fix aggregation widget logic

parent 8a8eb06f
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,8 @@ export default class AggregationPopover extends Component {
this.state = {
aggregation: (props.isNew ? [] : props.aggregation),
choosingField: AggregationClause.isStandard(props.aggregation),
editingAggregation: AggregationClause.isCustom(props.aggregation)
choosingField: (props.aggregation && props.aggregation.length > 1 && AggregationClause.isStandard(props.aggregation)),
editingAggregation: (props.aggregation && props.aggregation.length > 1 && AggregationClause.isCustom(props.aggregation))
};
_.bindAll(this, "commitAggregation", "onPickAggregation", "onPickField", "onClearAggregation");
......
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