Fix condition of logging possible room list corruption (#10685)

* Revert condition of logging possible room list corruption

* Fix loop condition
pull/28217/head
Michael Weimann 2023-04-26 09:57:33 +02:00 committed by GitHub
parent b32482bc4a
commit 857e22f943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ export class ImportanceAlgorithm extends OrderingAlgorithm {
}
// Do a quick check to see if we've completely broken the index
for (let i = 1; i <= CATEGORY_ORDER.length; i++) {
for (let i = 1; i < CATEGORY_ORDER.length; i++) {
const lastCat = CATEGORY_ORDER[i - 1];
const lastCatIndex = indices[lastCat];
const thisCat = CATEGORY_ORDER[i];