File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 4343export  default  {
4444  name:  ' ViewSessionApps'  , 
4545  data () { 
46+       let  session =  this .$store .state .session ; 
47+       let  fullApps =  session ==  null  ?  [] :  session .fullApps ; 
4648    return  { 
47-         session:  this .$store .state .session  
49+         session, 
50+         fullApps, 
4851    } 
4952  }, 
5053  props:  [ 
@@ -66,6 +69,9 @@ import store from '@/store.js'
6669
6770jt .updateSessionApps  =  function () {
6871    let  session =  store .state .session ; 
72+     if  (session ==  null ) { 
73+         return ; 
74+     } 
6975    session .fullApps  =  []; 
7076    for  (let  i in  session .apps ) { 
7177        let  oldApp =  session .apps [i]; 
Original file line number Diff line number Diff line change @@ -67,13 +67,15 @@ export default {
6767  name:  ' ParticipantsTable'  , 
6868  data () { 
6969    let  linkType =  ' link'  ; 
70-     if  (jt .settings .sessionShowFullLinks ) { 
70+     if  (jt .settings   !=   null   &&   jt . settings .sessionShowFullLinks ) { 
7171        linkType =  ' full link'  ; 
7272    }  
7373
74+     let  session =  this .$store .state .session ; 
75+     let  participants =  session !=  null  ?  session .participants  :  []; 
7476    return  { 
75-       session:  this . $store . state . session , 
76-       participants:  this . $store . state . session . participants , 
77+       session:  session, 
78+       participants:  participants, 
7779      storeFields:  this .$store .state .allFields , 
7880      fieldsToSkip:  playerFieldsToSkip, 
7981      fields:  [ 
Original file line number Diff line number Diff line change @@ -142,6 +142,9 @@ jt.setAllowAdminPlay = function(val) {
142142//  }
143143
144144jt .updateAllowAdminPlay  =  function () {
145+     if  (store .state .session  ==  null ) { 
146+         return ; 
147+     } 
145148    let  val =  store .state .session .allowAdminClientsToPlay ; 
146149    if  (val) { 
147150        $ (' #allowAdminPlayYes'  ).addClass (' btn-secondary'  ); 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments