Remove unnecessary, accidentally inverted condition for room ordering (#10178)
This commit is contained in:
parent
73360026ab
commit
f7bea2cae5
1 changed files with 0 additions and 1 deletions
|
@ -104,7 +104,6 @@ export class ImportanceAlgorithm extends OrderingAlgorithm {
|
||||||
// Every other sorting type affects the categories, not the whole tag.
|
// Every other sorting type affects the categories, not the whole tag.
|
||||||
const categorized = this.categorizeRooms(rooms);
|
const categorized = this.categorizeRooms(rooms);
|
||||||
for (const category of Object.keys(categorized)) {
|
for (const category of Object.keys(categorized)) {
|
||||||
if (!isNaN(Number(category))) continue;
|
|
||||||
const notificationColor = category as unknown as NotificationColor;
|
const notificationColor = category as unknown as NotificationColor;
|
||||||
const roomsToOrder = categorized[notificationColor];
|
const roomsToOrder = categorized[notificationColor];
|
||||||
categorized[notificationColor] = sortRoomsWithAlgorithm(
|
categorized[notificationColor] = sortRoomsWithAlgorithm(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue