chore: sort channel type for berry

This commit is contained in:
JustSong 2024-04-05 14:23:39 +08:00
parent 93cbca6a9f
commit af679e04f4

View File

@ -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 ( return (
<MenuItem key={option.value} value={option.value}> <MenuItem key={option.value} value={option.value}>
{option.text} {option.text}