From 4148147e0ed0336a73e7df89354274bd51ba7e82 Mon Sep 17 00:00:00 2001
From: Nathanael Jourdane <nathanael.jourdane@irap.omp.eu>
Date: Thu, 7 Sep 2017 16:40:44 +0200
Subject: [PATCH] bugfix: avoid error when switchin to an other service with less results than the scrollbar value

---
 js/app/controllers/EpnTapModule.js | 1 +
 1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/js/app/controllers/EpnTapModule.js b/js/app/controllers/EpnTapModule.js
index 2619e3e..e1142da 100644
--- a/js/app/controllers/EpnTapModule.js
+++ b/js/app/controllers/EpnTapModule.js
@@ -168,6 +168,7 @@ Ext.define('amdaDesktop.EpnTapModule', {
 		Ext.Ajax.abortAll();
 
 		if(record.get('nb_results') > 0) {
+			this.granulesStore.removeAll();
 			this.granulesStore.load({
 				params: {'action': 'getGranules'},
 				callback: function (records, operation, success) {
--
libgit2 0.21.2