MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / updateModEntry

Function updateModEntry

apps/webuiapps/src/lib/modManager.ts:295–300  ·  view source on GitHub ↗
(collection: ModCollection, entry: ModEntry)

Source from the content-addressed store, hash-verified

293}
294
295export function updateModEntry(collection: ModCollection, entry: ModEntry): ModCollection {
296 return {
297 ...collection,
298 items: { ...collection.items, [entry.config.id]: entry },
299 };
300}
301
302export function removeMod(collection: ModCollection, id: string): ModCollection {
303 const items = { ...collection.items };

Callers 2

saveModConfigFunction · 0.85
saveModStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected