(value: ImporterOutputFieldType)
| 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) => ({ |
no outgoing calls
no test coverage detected