channel_folders: Fix prettier issues in last commit.

This commit is contained in:
Tim Abbott
2025-08-08 16:55:33 -07:00
parent 40118c9a7c
commit a0b8e916c5

View File

@@ -36,13 +36,15 @@ export function initialize(params: StateData["channel_folders"]): void {
export function get_channel_folders(include_archived = false): ChannelFolder[] {
const channel_folders = [...channel_folder_by_id_dict.values()];
return channel_folders.filter((channel_folder) => {
if (!include_archived && channel_folder.is_archived) {
return false;
}
return channel_folders
.filter((channel_folder) => {
if (!include_archived && channel_folder.is_archived) {
return false;
}
return true;
}).sort((folder_a, folder_b) => folder_a.order - folder_b.order);
return true;
})
.sort((folder_a, folder_b) => folder_a.order - folder_b.order);
}
/* TODO/channel-folders: Remove when tests are restored */