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: