MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / findDefaultChannel

Function findDefaultChannel

apps/web/ui/AddThreadModal/index.tsx:47–53  ·  view source on GitHub ↗
(channels: SerializedChannel[])

Source from the content-addressed store, hash-verified

45}
46
47function findDefaultChannel(channels: SerializedChannel[]): SerializedChannel {
48 const channel = channels.find((channel) => channel.default);
49 if (channel) {
50 return channel;
51 }
52 return channels?.[0];
53}
54
55export default function AddThreadModal({
56 communityId,

Callers 1

AddThreadModalFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected