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

Commit a51847e

Browse files
authored
Merge pull request #6909 from matrix-org/t3chguy/fix/19255
2 parents 1d5a1c7 + d8bc868 commit a51847e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stores/SpaceStore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
793793
// 1 is Home, 2-9 are the spaces after Home
794794
if (payload.num === 1) {
795795
this.setActiveSpace(null);
796-
} else if (this.spacePanelSpaces.length >= payload.num) {
796+
} else if (payload.num > 0 && this.spacePanelSpaces.length > payload.num - 2) {
797797
this.setActiveSpace(this.spacePanelSpaces[payload.num - 2]);
798798
}
799799
break;

0 commit comments

Comments
 (0)