Skip to content

Commit 3c17b8b

Browse files
committed
Fixed bug where new user message doesnt come up
1 parent 067e4a8 commit 3c17b8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

OpenNote/openNote/controllers/folderController.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,8 @@ openNote.controller("folderController", function( $scope,
236236
$scope.currentFolderContents=results.rows;
237237

238238
//Do they have anything to display?
239-
if(!$scope.currentFolder._id && !$scope.currentFolderContents){
239+
if(!$scope.currentFolder._id && !$scope.currentFolderContents.length)
240240
alertify.alert("It looks like you dont have any folders. You can create one using the \"New Folder\" button in the top right of the page. If you need to pull your remote notes <a href='#/settings/database'>click here</a>.");
241-
}
242241

243242
$scope.$apply();
244243
});

0 commit comments

Comments
 (0)