From af679e04f447733c2a36965c9abdaf546c8c124d Mon Sep 17 00:00:00 2001 From: JustSong Date: Fri, 5 Apr 2024 14:23:39 +0800 Subject: [PATCH] chore: sort channel type for berry --- web/berry/src/views/Channel/component/EditModal.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/berry/src/views/Channel/component/EditModal.js b/web/berry/src/views/Channel/component/EditModal.js index 07111c97..cbf411b9 100644 --- a/web/berry/src/views/Channel/component/EditModal.js +++ b/web/berry/src/views/Channel/component/EditModal.js @@ -340,7 +340,9 @@ const EditModal = ({ open, channelId, onCancel, onOk }) => { }, }} > - {Object.values(CHANNEL_OPTIONS).map((option) => { + {Object.values(CHANNEL_OPTIONS).sort((a, b) => { + return a.text.localeCompare(b.text) + }).map((option) => { return ( {option.text}