mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
Table fixes
- Fixed sorting and filtering on non-string columns - Fixed warnings about missing required prop and invalid default value in table rows - Fixed error occuring when formatting non-existent column
This commit is contained in:
parent
7483e886f1
commit
c7b73bdc3f
@ -48,7 +48,12 @@ define(function () {
|
||||
}
|
||||
|
||||
getFormattedValue(telemetryDatum) {
|
||||
return this.formatter.format(telemetryDatum);
|
||||
let formattedValue = this.formatter.format(telemetryDatum);
|
||||
if (typeof formattedValue !== 'string') {
|
||||
return formattedValue.toString();
|
||||
} else {
|
||||
return formattedValue;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -39,7 +39,7 @@ define([], function () {
|
||||
|
||||
getFormattedValue(key) {
|
||||
let column = this.columns[key];
|
||||
return column.getFormattedValue(this.datum[key]);
|
||||
return column && column.getFormattedValue(this.datum[key]);
|
||||
}
|
||||
|
||||
getRowLimitClass() {
|
||||
|
@ -32,7 +32,9 @@ export default {
|
||||
columnWidths: {
|
||||
type: Array,
|
||||
required: false,
|
||||
default: [],
|
||||
default() {
|
||||
return [];
|
||||
},
|
||||
},
|
||||
rowIndex: {
|
||||
type: Number,
|
||||
@ -48,10 +50,6 @@ export default {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 0
|
||||
},
|
||||
configuration: {
|
||||
type: Object,
|
||||
required: true
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
Loading…
Reference in New Issue
Block a user