Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit c33272b

Browse files
committed
chore: update types
1 parent 934b5f0 commit c33272b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/src/channel-list/channel-list.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const useChannelListCore = (props: CommonChannelListProps) => {
4040

4141
const channelSorter = (a: ChannelEntity, b: ChannelEntity) => {
4242
if (props.sort) return props.sort(a, b);
43-
return a.name?.localeCompare(b.name as string, "en", { sensitivity: "base" }) as number;
43+
return a?.name?.localeCompare(b.name as string, "en", { sensitivity: "base" }) as number;
4444
};
4545

4646
const channelFromString = (channel: ChannelEntity | string) => {

0 commit comments

Comments
 (0)