MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / clearPolicyHandler

Function clearPolicyHandler

packages/plugins/toolkits/src/page.tsx:1335–1342  ·  view source on GitHub ↗
(pattern: string)

Source from the content-addressed store, hash-verified

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>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected