MCPcopy Create free account
hub / github.com/BingyanStudio/github-analyzer / fetchPresets

Function fetchPresets

web/src/pages/Report.tsx:41–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 // Fetch presets
40 useEffect(() => {
41 const fetchPresets = async () => {
42 try {
43 const response = await fetch("/api/presets");
44 if (response.ok) {
45 const data = await response.json();
46 setPresets(data.presets || []);
47 }
48 } catch (err) {
49 console.error("Error fetching presets:", err);
50 }
51 };
52
53 fetchPresets();
54 }, []);

Callers 1

ReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected