mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
channel_folders: Fix prettier issues in last commit.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user