Skip to content

Commit

Permalink
SAK-31246: Organize Favorites shows a -1 when no favorites selected
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon committed May 23, 2016
1 parent d7cfc1d commit 954d3e6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,7 @@ $PBJQ(document).ready(function($){
};

var renderFavoriteCount = function () {
// Subtract 1 from the count to avoid counting "My Workspace", which can't be moved anyway.
var favoriteCount = $PBJQ('.site-favorite', favoritesPane).length - 1;
var favoriteCount = $PBJQ('.site-favorite', favoritesPane).length;

$PBJQ('.favoriteCount', container).text('(' + favoriteCount + ')');

Expand Down

0 comments on commit 954d3e6

Please sign in to comment.