Conditional set output is wrong (#6244)

* Only use default if we've evaluated as default
* Add e2e test for conditional sets
---------

Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
Scott Bell
2023-03-17 16:58:09 +01:00
committed by GitHub
parent eff0cc96b9
commit 6cb5c47f3a
8 changed files with 107 additions and 19 deletions

View File

@ -72,7 +72,7 @@ export default {
this.isEditing = isEditing;
},
formatTelemetry(event) {
let newFormat = event.currentTarget.value;
const newFormat = event.currentTarget.value;
this.openmct.selection.get().forEach(selectionPath => {
selectionPath[0].context.updateTelemetryFormat(newFormat);
});

View File

@ -193,7 +193,7 @@ export default {
},
telemetryValue() {
if (!this.datum) {
return;
return '---';
}
return this.formatter && this.formatter.format(this.datum);