Bugfix last commit, check for undefined
This commit is contained in:
parent
0c2ffab3b9
commit
27b277ee6b
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
||||||
|
|
||||||
$scope.hasUnread = function(buffer) {
|
$scope.hasUnread = function(buffer) {
|
||||||
// if search is set, return every buffer
|
// if search is set, return every buffer
|
||||||
if($scope.search.$) return true;
|
if($scope.search != undefined && $scope.search.$) return true;
|
||||||
if($scope.onlyUnread) {
|
if($scope.onlyUnread) {
|
||||||
// Always show current buffer in list
|
// Always show current buffer in list
|
||||||
if (models.getActiveBuffer() == buffer) {
|
if (models.getActiveBuffer() == buffer) {
|
||||||
|
|
Loading…
Reference in a new issue