Skip to content

Commit d6263c0

Browse files
committed
RemoteExplorerLayout: Fix create new tab on refresh.
1 parent cd95a1c commit d6263c0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/views/Explorer/RemoteExplorerLayout/RemoteExplorerLayout.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class RemoteExplorerLayout extends React.Component {
2929

3030
componentDidMount() {
3131
//Load one explorer layout
32-
const {numCols, addRemoteContainer} = this.props;
32+
const {numContainers, addRemoteContainer} = this.props;
3333

34-
if (numCols === 1) {
34+
if (numContainers < 1) {
3535
addRemoteContainer(0)
3636
}
3737
}
@@ -131,12 +131,13 @@ class RemoteExplorerLayout extends React.Component {
131131
}
132132

133133
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,
140141
});
141142

142143
RemoteExplorerLayout.propTypes = {

0 commit comments

Comments
 (0)