From 76548f1cd0dca0948eedf7a59b2ee6bf17c7bc27 Mon Sep 17 00:00:00 2001 From: yanas Date: Fri, 25 Mar 2016 17:15:50 -0500 Subject: [PATCH] Fixes exception on follow me command. --- modules/FollowMe.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/FollowMe.js b/modules/FollowMe.js index dd9bd3926..2ffd4e812 100644 --- a/modules/FollowMe.js +++ b/modules/FollowMe.js @@ -303,10 +303,10 @@ class FollowMe { var clickId = null; if(typeof id !== 'undefined' && !VideoLayout.isPinned(id)) clickId = id; - else if (typeof id == 'undefined') + else if (typeof id == 'undefined' && VideoLayout.getPinnedId()) clickId = VideoLayout.getPinnedId(); - if (clickId !== null) + if (clickId) VideoLayout.handleVideoThumbClicked(clickId); }