Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6909 from matrix-org/t3chguy/fix/19255
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Oct 6, 2021
2 parents 1d5a1c7 + d8bc868 commit a51847e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/SpaceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
// 1 is Home, 2-9 are the spaces after Home
if (payload.num === 1) {
this.setActiveSpace(null);
} else if (this.spacePanelSpaces.length >= payload.num) {
} else if (payload.num > 0 && this.spacePanelSpaces.length > payload.num - 2) {
this.setActiveSpace(this.spacePanelSpaces[payload.num - 2]);
}
break;
Expand Down

0 comments on commit a51847e

Please sign in to comment.