Commit 4148147e0ed0336a73e7df89354274bd51ba7e82

Authored by Nathanael Jourdane
1 parent e4785141

bugfix: avoid error when switchin to an other service with less results than the scrollbar value

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
js/app/controllers/EpnTapModule.js
@@ -168,6 +168,7 @@ Ext.define('amdaDesktop.EpnTapModule', { @@ -168,6 +168,7 @@ Ext.define('amdaDesktop.EpnTapModule', {
168 Ext.Ajax.abortAll(); 168 Ext.Ajax.abortAll();
169 169
170 if(record.get('nb_results') > 0) { 170 if(record.get('nb_results') > 0) {
  171 + this.granulesStore.removeAll();
171 this.granulesStore.load({ 172 this.granulesStore.load({
172 params: {'action': 'getGranules'}, 173 params: {'action': 'getGranules'},
173 callback: function (records, operation, success) { 174 callback: function (records, operation, success) {