@things-factory/meta-ui 8.0.0-alpha.30 → 8.0.0-alpha.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -460,9 +460,17 @@ export class ServiceUtil {
460
460
  column.hidden !== true
461
461
  )
462
462
  .reduce((record, column) => {
463
- record[column.imex.key] = column.imex.key
464
- .split('.')
465
- .reduce((obj, key) => (obj && obj[key] !== 'undefined' ? obj[key] : undefined), item)
463
+ record[column.imex.key] = column.imex.key.split('.').reduce((obj, key) => {
464
+ const val = obj && obj[key] !== 'undefined' ? obj[key] : undefined
465
+
466
+ if (column.type == 'select') {
467
+ return column?.record?.options?.find(option => option.value == val)?.display
468
+ } else if (column.type.includes('object')) {
469
+ return val?.name
470
+ }
471
+
472
+ return val
473
+ }, item)
466
474
  return record
467
475
  }, {})
468
476
  }