MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / toggleGroup

Function toggleGroup

apps/testbed/src/pages/Login.tsx:99–106  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

97 }
98
99 function toggleGroup(id: string) {
100 setForm((prev) => ({
101 ...prev,
102 groupIds: prev.groupIds.includes(id)
103 ? prev.groupIds.filter((g) => g !== id)
104 : [...prev.groupIds, id],
105 }));
106 }
107
108 return (
109 <div>

Callers 1

LoginPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected