Skip to content

Commit

Permalink
Move notifier instantiation to higher scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Aug 23, 2016
1 parent 34f0fce commit 3d39623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/public/agg_types/buckets/terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ define(function (require) {
let AggConfig = Private(require('ui/Vis/AggConfig'));
let Schemas = Private(require('ui/Vis/Schemas'));
let createFilter = Private(require('ui/agg_types/buckets/create_filter/terms'));
const notify = new Notifier();

let orderAggSchema = (new Schemas([
{
Expand Down Expand Up @@ -134,7 +135,6 @@ define(function (require) {

const orderBy = orderAgg.type.name;
if (orderBy === 'count' && dir === 'asc') {
const notify = new Notifier();
notify.warning('Sorting in Ascending order by Count in Terms aggregations is deprecated');
}

Expand Down

0 comments on commit 3d39623

Please sign in to comment.