Remove unnecessary, accidentally inverted condition for room ordering (#10178)
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user