mirror of
https://github.com/nasa/openmct.git
synced 2025-04-11 13:20:18 +00:00
[openmct-YAMCS] TelemetryTableRow refactor createNormalizedDatum to include extra datum #3613 (#3614)
This commit is contained in:
parent
98207a3e0d
commit
b0fa955914
@ -100,11 +100,13 @@ define([], function () {
|
||||
* @param {*} metadataValues
|
||||
*/
|
||||
function createNormalizedDatum(datum, columns) {
|
||||
return Object.values(columns).reduce((normalizedDatum, column) => {
|
||||
normalizedDatum[column.getKey()] = column.getRawValue(datum);
|
||||
const normalizedDatum = JSON.parse(JSON.stringify(datum));
|
||||
|
||||
return normalizedDatum;
|
||||
}, {});
|
||||
Object.values(columns).forEach(column => {
|
||||
normalizedDatum[column.getKey()] = column.getRawValue(datum);
|
||||
});
|
||||
|
||||
return normalizedDatum;
|
||||
}
|
||||
|
||||
return TelemetryTableRow;
|
||||
|
Loading…
x
Reference in New Issue
Block a user