fix default condition edge case

This commit is contained in:
David Tsay 2020-02-28 13:10:06 -08:00
parent 9bd1c51a6e
commit 0f9d7d2832

View File

@ -228,7 +228,7 @@ export default class ConditionManager extends EventEmitter {
this.openmct.objects.get(currentConditionIdentifier).then((obj) => {
this.emit('conditionSetResultUpdated',
Object.assign({},
resultObj.data,
resultObj ? resultObj.data : {},
{ output: obj.configuration.output }
)
)