MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / finishCopy

Function finishCopy

graph-ui/src/settings/SettingsPanel.tsx:384–393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

382 const copy = useCallback((id: string, line: string) => {
383 setCopying((current) => ({ ...current, [id]: (current[id] ?? 0) + 1 }));
384 const finishCopy = (): void => {
385 setCopying((current) => {
386 const count = current[id] ?? 0;
387 if (count <= 1) {
388 const { [id]: _finished, ...rest } = current;
389 return rest;
390 }
391 return { ...current, [id]: count - 1 };
392 });
393 };
394 const fallback = (): void => {
395 try {
396 const field = document.createElement('textarea');

Callers 2

fallbackFunction · 0.85
SettingsPanelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected