From 0f9d7d2832840d28b21e111a679e25a3ff7f865c Mon Sep 17 00:00:00 2001 From: David Tsay Date: Fri, 28 Feb 2020 13:10:06 -0800 Subject: [PATCH] fix default condition edge case --- src/plugins/condition/ConditionManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/condition/ConditionManager.js b/src/plugins/condition/ConditionManager.js index c11788053a..45330f625f 100644 --- a/src/plugins/condition/ConditionManager.js +++ b/src/plugins/condition/ConditionManager.js @@ -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 } ) )