Skip to content

Commit

Permalink
fix broken stand-alone profile pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman committed Sep 27, 2014
1 parent 64f71e1 commit 92a4baa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions both/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ Router.map(function() {
},
data: function () {
var user = Meteor.users.findOne(this.params._id);
if (!user)
return;

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

0 comments on commit 92a4baa

Please sign in to comment.