Skip to content

Commit 92a4baa

Browse files
committed
fix broken stand-alone profile pages
1 parent 64f71e1 commit 92a4baa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

both/router.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Router.map(function() {
8888
},
8989
data: function () {
9090
var user = Meteor.users.findOne(this.params._id);
91+
if (!user)
92+
return;
9193

9294
var playlists = Playlists.find( {owner: this.params._id});
9395
user.userPlaylists = playlists;

0 commit comments

Comments
 (0)