Pārlūkot izejas kodu

Fixes exception on follow me command.

master
yanas 9 gadus atpakaļ
vecāks
revīzija
76548f1cd0
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      modules/FollowMe.js

+ 2
- 2
modules/FollowMe.js Parādīt failu

@@ -303,10 +303,10 @@ class FollowMe {
303 303
         var clickId = null;
304 304
         if(typeof id !== 'undefined' && !VideoLayout.isPinned(id))
305 305
             clickId = id;
306
-        else if (typeof id == 'undefined')
306
+        else if (typeof id == 'undefined' && VideoLayout.getPinnedId())
307 307
             clickId = VideoLayout.getPinnedId();
308 308
 
309
-        if (clickId !== null)
309
+        if (clickId)
310 310
             VideoLayout.handleVideoThumbClicked(clickId);
311 311
     }
312 312
 

Notiek ielāde…
Atcelt
Saglabāt