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

Function patchCollectionData

client/src/state/collections.tsx:208–216  ·  view source on GitHub ↗
(
  state: Collection[],
  collectionId: number,
  data: any,
)

Source from the content-addressed store, hash-verified

206}
207
208function patchCollectionData(
209 state: Collection[],
210 collectionId: number,
211 data: any,
212): Collection[] {
213 return modifyCollection(state, collectionId, (c) => {
214 c.data = { ...c.data, ...data };
215 });
216}
217
218function deleteCollection(state: Collection[], id: number): Collection[] {
219 const collection = findCollection(state, id);

Callers 1

collectionsReducerFunction · 0.85

Calls 1

modifyCollectionFunction · 0.85

Tested by

no test coverage detected