Skip to content

Commit

Permalink
Enforce a minimal context size of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
weltenwort committed Dec 5, 2016
1 parent 123d6b0 commit dbaed4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core_plugins/kibana/public/context/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const module = uiModules.get('apps/context', [
'kibana',
'ngRoute',
]);
const MIN_CONTEXT_SIZE = 0;

module.directive('contextApp', function ContextApp() {
return {
Expand Down Expand Up @@ -74,7 +75,7 @@ function ContextAppController($q, config, es) {
]);
},
setSize: (size) => {
this.size = size;
this.size = Math.max(size, MIN_CONTEXT_SIZE);
return this.actions.fetchContextRows();
},
};
Expand Down

0 comments on commit dbaed4f

Please sign in to comment.