From 35e0653b13e10f7546c52256bacbe8e24f5d3234 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Fri, 25 Oct 2013 07:39:56 -0700 Subject: [PATCH] Fix unpinned queries re: @yahiko --- src/app/services/querySrv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/querySrv.js b/src/app/services/querySrv.js index c807b4dc34c..ade4a890973 100755 --- a/src/app/services/querySrv.js +++ b/src/app/services/querySrv.js @@ -219,7 +219,7 @@ function (angular, _, config, kbn) { case 'pinned': return _.pluck(_.where(self.list,{pin:true,enable:true}),'id'); case 'unpinned': - return _.difference(self.ids,_.pluck(_.where(self.list,{pin:true,enable:true}),'id')); + return _.pluck(_.where(self.list,{pin:false,enable:true}),'id'); case 'selected': return _.intersection(_.pluck(_.where(self.list,{enable:true}),'id'),config.ids); default: