MCPcopy
hub / github.com/pingdotgg/t3code / selectThreadDiffPanelSelection

Function selectThreadDiffPanelSelection

apps/web/src/diffPanelStore.ts:133–139  ·  view source on GitHub ↗
(
  byThreadKey: Record<string, DiffPanelSelection>,
  ref: ScopedThreadRef | null | undefined,
)

Source from the content-addressed store, hash-verified

131);
132
133export function selectThreadDiffPanelSelection(
134 byThreadKey: Record<string, DiffPanelSelection>,
135 ref: ScopedThreadRef | null | undefined,
136): DiffPanelSelection {
137 if (!ref) return DEFAULT_SELECTION;
138 return byThreadKey[scopedThreadKey(ref)] ?? DEFAULT_SELECTION;
139}

Callers 2

DiffPanelFunction · 0.90

Calls 1

scopedThreadKeyFunction · 0.90

Tested by

no test coverage detected