We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57e2dcd commit ef467cdCopy full SHA for ef467cd
src/components/ChannelList/hooks/useChannelListShape.ts
@@ -362,14 +362,14 @@ export const useChannelListShapeDefaults = <SCG extends ExtendableGenerics>() =>
362
return customHandler(setChannels, event);
363
}
364
365
- if (!event.channel) {
+ if (!event.channel_id && !event.channel_type) {
366
return;
367
368
369
const channel = await getChannel({
370
client,
371
- id: event.channel.id,
372
- type: event.channel.type,
+ id: event.channel_id,
+ type: event.channel_type,
373
});
374
375
const considerArchivedChannels = shouldConsiderArchivedChannels(filters);
0 commit comments