MCPcopy Create free account
hub / github.com/EsperoTech/yaade / toggleOpenCollection

Function toggleOpenCollection

client/src/state/collections.tsx:455–459  ·  view source on GitHub ↗
(state: Collection[], id: number)

Source from the content-addressed store, hash-verified

453}
454
455function toggleOpenCollection(state: Collection[], id: number): Collection[] {
456 return modifyCollection(state, id, (c) => {
457 c.open = !c.open;
458 });
459}
460
461function setEnvVar(state: Collection[], payload: SetEnvVarPayload): Collection[] {
462 return modifyCollection(state, payload.collectionId, (c) => {

Callers 1

collectionsReducerFunction · 0.85

Calls 1

modifyCollectionFunction · 0.85

Tested by

no test coverage detected