MCPcopy Create free account
hub / github.com/HelloCSV/HelloCSV / updateValue

Function updateValue

src/sheet/components/SheetDataEditorCell.tsx:114–126  ·  view source on GitHub ↗
(value: ImporterOutputFieldType)

Source from the content-addressed store, hash-verified

112 }
113
114 function updateValue(value: ImporterOutputFieldType) {
115 setEditMode(false);
116
117 if (
118 columnDefinition.type === 'number' &&
119 value !== '' &&
120 !isNaN(Number(value))
121 ) {
122 onUpdated(Number(value));
123 } else {
124 onUpdated(value ?? '');
125 }
126 }
127
128 if (columnDefinition.type === 'boolean') {
129 const selectOptions = [true, false].map((value) => ({

Callers 1

SheetDataEditorCellFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected