web/apps/hello-elasticsearch/js/hello-elasticsearch.js
function updateAggregations(response) {
  if(response.hasOwnProperty('aggregations')) {
    aggregationsBox.textContent = JSON.stringify(response.aggregations,
                                                 null, 2);
    show(aggregationsCard);
  }
  else {
    hide(aggregationsCard);
  }
}
function updateAggregations(response) {
  if(response.hasOwnProperty('aggregations')) {
    aggregationsBox.textContent = JSON.stringify(response.aggregations,
                                                 null, 2);
    show(aggregationsCard);
  }
  else {
    hide(aggregationsCard);
  }
}
function updateAggregations ( response ) { if ( response . hasOwnProperty ( 'aggregations' ) ) { aggregationsBox . textContent = JSON . stringify ( response . aggregations , null , 2 ) ; show ( aggregationsCard ) ; } else { hide ( aggregationsCard ) ; } }
Update the aggregations
Update the aggregations