MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / addCardHeight

Function addCardHeight

frontend/src/hooks/useCardOperation.ts:19–25  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

17 ];
18
19 const addCardHeight = (id: string) => {
20 const card = getCardById("", id);
21 const newIndex = LEVEL_LIST.findIndex((item) => item === card?.height);
22 if (newIndex >= 0 && LEVEL_LIST[newIndex - 1] && card) {
23 card.height = LEVEL_LIST[newIndex - 1];
24 }
25 };
26
27 const reduceCardHeight = (id: string) => {
28 const card = getCardById("", id);

Callers

nothing calls this directly

Calls 1

getCardByIdFunction · 0.85

Tested by

no test coverage detected