MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / run

Function run

frontend/src/components/forms/Recording.jsx:86–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 useEffect(() => {
85 let cancelled = false;
86 const run = async () => {
87 if (!isOpen) return;
88 try {
89 setIsChannelsLoading(true);
90 const chans = await getChannelsSummary();
91 if (cancelled) return;
92 setAllChannels(Array.isArray(chans) ? chans : []);
93 } catch (e) {
94 console.warn('Failed to load channels for recording form', e);
95 if (!cancelled) setAllChannels([]);
96 } finally {
97 if (!cancelled) setIsChannelsLoading(false);
98 }
99 };
100 run();
101 return () => {
102 cancelled = true;

Callers 1

RecordingModalFunction · 0.70

Calls 1

getChannelsSummaryFunction · 0.90

Tested by

no test coverage detected