@@ -29,9 +29,9 @@ class RemoteExplorerLayout extends React.Component {
29
29
30
30
componentDidMount ( ) {
31
31
//Load one explorer layout
32
- const { numCols , addRemoteContainer} = this . props ;
32
+ const { numContainers , addRemoteContainer} = this . props ;
33
33
34
- if ( numCols === 1 ) {
34
+ if ( numContainers < 1 ) {
35
35
addRemoteContainer ( 0 )
36
36
}
37
37
}
@@ -131,12 +131,13 @@ class RemoteExplorerLayout extends React.Component {
131
131
}
132
132
133
133
const mapStateToProps = ( state ) => ( {
134
- backStacks : state . explorer . backStacks ,
135
- numCols : state . remote . numCols ,
136
- distractionFreeMode : state . remote . distractionFreeMode ,
137
- splitMode : state . remote . splitMode ,
138
- activeRemoteContainerID : state . remote . activeRemoteContainerID ,
139
- containers : state . remote . containers ,
134
+ backStacks : state . explorer . backStacks ,
135
+ numCols : state . remote . numCols ,
136
+ numContainers : state . remote . numContainers ,
137
+ distractionFreeMode : state . remote . distractionFreeMode ,
138
+ splitMode : state . remote . splitMode ,
139
+ activeRemoteContainerID : state . remote . activeRemoteContainerID ,
140
+ containers : state . remote . containers ,
140
141
} ) ;
141
142
142
143
RemoteExplorerLayout . propTypes = {
0 commit comments