(pattern: string)
| 1333 | }; |
| 1334 | |
| 1335 | const clearPolicyHandler = async (pattern: string) => { |
| 1336 | const existing = policyRows.find((policy) => policy.pattern === pattern); |
| 1337 | if (!existing) return; |
| 1338 | await doRemovePolicy({ |
| 1339 | params: { toolkitId: props.toolkit.id, policyId: existing.id }, |
| 1340 | reactivityKeys: toolkitWriteKeys, |
| 1341 | }); |
| 1342 | }; |
| 1343 | |
| 1344 | if (AsyncResult.isFailure(policies) || AsyncResult.isFailure(connections)) { |
| 1345 | return <div className="p-6 text-sm text-destructive">Failed to load toolkit</div>; |
nothing calls this directly
no outgoing calls
no test coverage detected