Skip to content

Commit

Permalink
Merge pull request #1022 from slidewiki/direct_deck_url_hangs_when_lo…
Browse files Browse the repository at this point in the history
…gged_out

Fix server timeout when visiting direct deck URL when logged out
  • Loading branch information
kprist authored Oct 4, 2018
2 parents 346a112 + b73f839 commit deca2d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actions/loadDeck.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ export default function loadDeck(context, payload, done) {
const userId = context.getStore(UserProfileStore).getState().userid;
if (userId !== undefined && userId !== null && userId !== '') {
context.executeAction(getFollowing, {selector: payload.params, userId: userId, followed_type: 'deck'}, callback);
} else {
callback();
}
}else{
callback();
Expand Down

0 comments on commit deca2d1

Please sign in to comment.