mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
channel_folders: Sort get_channel_folders by order.
This commit is contained in:
@@ -42,7 +42,7 @@ export function get_channel_folders(include_archived = false): ChannelFolder[] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
});
|
}).sort((folder_a, folder_b) => folder_a.order - folder_b.order);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO/channel-folders: Remove when tests are restored */
|
/* TODO/channel-folders: Remove when tests are restored */
|
||||||
|
|||||||
Reference in New Issue
Block a user