MCPcopy Create free account
hub / github.com/astercloud/aster / toggleChannel

Function toggleChannel

studio/src/pages/Events.tsx:119–123  ·  view source on GitHub ↗
(channel: EventChannel)

Source from the content-addressed store, hash-verified

117 };
118
119 const toggleChannel = (channel: EventChannel) => {
120 setSelectedChannels((prev) =>
121 prev.includes(channel) ? prev.filter((c) => c !== channel) : [...prev, channel]
122 );
123 };
124
125 const toggleEventType = (type: string) => {
126 setSelectedTypes((prev) =>

Callers 1

EventsFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected