Resolve "The Great Conflict"
This commit is contained in:
parent
291997421b
commit
ba0bc8f29c
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ export class ImportanceAlgorithm extends OrderingAlgorithm {
|
||||||
// handling. For instance, if 45 rooms are removed from the middle of a 50 room list, the
|
// handling. For instance, if 45 rooms are removed from the middle of a 50 room list, the
|
||||||
// index for the categories will be way off.
|
// index for the categories will be way off.
|
||||||
|
|
||||||
const nextOrderIndex = CATEGORY_ORDER.indexOf(category) + 1
|
const nextOrderIndex = CATEGORY_ORDER.indexOf(category) + 1;
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
for (let i = nextOrderIndex; i < CATEGORY_ORDER.length; i++) {
|
for (let i = nextOrderIndex; i < CATEGORY_ORDER.length; i++) {
|
||||||
const nextCategory = CATEGORY_ORDER[i];
|
const nextCategory = CATEGORY_ORDER[i];
|
||||||
|
|
Loading…
Reference in a new issue