MCPcopy Create free account
hub / github.com/Packstack-Tech/packstack / update

Function update

frontend/src/app/Inventory/Item.tsx:38–41  ·  view source on GitHub ↗
(key: string, value: any)

Source from the content-addressed store, hash-verified

36 }, [catId, wUnit]);
37
38 function update(key: string, value: any) {
39 const i = Object.assign({}, { ...copy, [key]: value });
40 setCopy(i);
41 }
42
43 function handleSave() {
44 if (!copy.name || isEqual(copy, item)) return;

Callers 1

ItemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected