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

Function committedForOwner

packages/react/src/pages/policies.tsx:412–413  ·  view source on GitHub ↗
(owner: Owner)

Source from the content-addressed store, hash-verified

410 // (empty `position`) aren't valid keys for `generateKeyBetween` and
411 // aren't reorderable until the server confirms.
412 const committedForOwner = (owner: Owner) =>
413 sorted.filter((p) => p.owner === owner && p.position !== "");
414 const committedIndex = (id: string, owner: Owner): number =>
415 committedForOwner(owner).findIndex((p) => p.id === id);
416 const positionAbove = (id: string, owner: Owner): string => {

Callers 4

committedIndexFunction · 0.85
positionAboveFunction · 0.85
positionBelowFunction · 0.85
PoliciesPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected