( labelDict: Record<string, ImporterOutputFieldType>, value: ImporterOutputFieldType )
| 145 | } |
| 146 | |
| 147 | export function getLabelDictValue( |
| 148 | labelDict: Record<string, ImporterOutputFieldType>, |
| 149 | value: ImporterOutputFieldType |
| 150 | ): ImporterOutputFieldType { |
| 151 | if (Array.isArray(value)) { |
| 152 | return value.map((v) => labelDict[v] ?? v).join(', '); |
| 153 | } |
| 154 | |
| 155 | if (typeof value !== 'string') { |
| 156 | return value; |
| 157 | } |
| 158 | |
| 159 | return labelDict[value] ?? value; |
| 160 | } |
| 161 | |
| 162 | export function getColumnDisplayValue( |
| 163 | sheetDefinition: SheetDefinition, |
no outgoing calls
no test coverage detected