File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed 
packages/compass-workspaces/src/stores Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1010,8 +1010,8 @@ export const loadSavedWorkspaces = (): WorkspacesThunkAction<
10101010        buttonText : 'Reopen tabs' , 
10111011      } ) ; 
10121012
1013-       const  workspacesToRestore : OpenWorkspaceOptions [ ]  =  [ ] ; 
10141013      if  ( confirm )  { 
1014+         const  workspacesToRestore : OpenWorkspaceOptions [ ]  =  [ ] ; 
10151015        for  ( const  workspace  of  savedState . tabs )  { 
10161016          // If the workspace is tied to a connection, check if the connection exists 
10171017          // and add it to the list of connections to restore if so. 
@@ -1021,20 +1021,22 @@ export const loadSavedWorkspaces = (): WorkspacesThunkAction<
10211021            ) ?. info ; 
10221022
10231023            if  ( ! connectionInfo )  { 
1024-               return ; 
1024+               continue ; 
10251025            } 
10261026
10271027            void  connections . connect ( connectionInfo ) ; 
10281028          } 
10291029
10301030          workspacesToRestore . push ( workspace ) ; 
10311031        } 
1032-       } 
10331032
1034-       dispatch ( { 
1035-         type : WorkspacesActions . RestoreWorkspaces , 
1036-         tabs : workspacesToRestore , 
1037-       } ) ; 
1033+         if  ( workspacesToRestore . length  >  0 )  { 
1034+           dispatch ( { 
1035+             type : WorkspacesActions . RestoreWorkspaces , 
1036+             tabs : workspacesToRestore , 
1037+           } ) ; 
1038+         } 
1039+       } 
10381040    } 
10391041  } ; 
10401042} ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments