Skip to content

Commit

Permalink
Order selected channels alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
aralyekta committed Jan 28, 2025
1 parent ec44f3f commit cc3b58f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ const IntegrationContent = ({ type, customGuru, error }) => {
<div className="space-y-4 guru-xs:mt-4 mt-5">
{channels
.filter((c) => c.allowed)
.sort((a, b) => a.name.localeCompare(b.name))
.map((channel) => (
<div
key={channel.id}
Expand Down Expand Up @@ -327,6 +328,7 @@ const IntegrationContent = ({ type, customGuru, error }) => {
<SelectContent className="bg-white border border-[#E5E7EB] text-[14px] rounded-lg shadow-lg">
{channels
.filter((c) => !c.allowed)
.sort((a, b) => a.name.localeCompare(b.name))
.map((channel) => (
<SelectItem
key={channel.id}
Expand Down

0 comments on commit cc3b58f

Please sign in to comment.