We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7708fd commit a726438Copy full SHA for a726438
src/components/ChannelList/hooks/useChannelListShape.ts
@@ -349,14 +349,14 @@ export const useChannelListShapeDefaults = () => {
349
return customHandler(setChannels, event);
350
}
351
352
- if (!event.channel) {
+ if (!event.channel_id && !event.channel_type) {
353
return;
354
355
356
const channel = await getChannel({
357
client,
358
- id: event.channel.id,
359
- type: event.channel.type,
+ id: event.channel_id,
+ type: event.channel_type,
360
});
361
362
const considerArchivedChannels = shouldConsiderArchivedChannels(filters);
0 commit comments