MCPcopy Create free account
hub / github.com/ayushsharma74/codehub / initializeCheckboxes

Function initializeCheckboxes

src/components/main/sheetData.tsx:92–101  ·  view source on GitHub ↗
(items: Item[])

Source from the content-addressed store, hash-verified

90 };
91
92 const initializeCheckboxes = (items: Item[]) => {
93
94 const newCheckboxes: CheckBoxStatus = {...checkboxes};
95 items.forEach((item) => {
96 if(!newCheckboxes[item.id]) {
97 newCheckboxes[item.id] = false;
98 }
99 });
100 setCheckboxes(newCheckboxes);
101 }
102
103 useEffect(() => {
104 if(records.length > 0 ) {

Callers 1

SheetDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected