aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2017-09-21 16:59:07 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2017-09-21 16:59:07 +0800
commit20b28c09167c03628cd192b05d754cf95b0329c6 (patch)
tree49da6b3cd9133bd23842f01e30292f33d8d3cd2e /sdc-workflow-designer-ui
parent48282c43f118a277600a9df88c39814bd8babec6 (diff)
Fix data convert error for tree node
Data convert error for rest task Issue-ID: SDC-363 Change-Id: I94aaab21dc3f33e4ed34932665db8ede94d2eac0 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-ui')
-rw-r--r--sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts b/sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts
index b70b0ca5..cda06fdb 100644
--- a/sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts
+++ b/sdc-workflow-designer-ui/src/app/services/swagger-tree-converter.service.ts
@@ -73,7 +73,7 @@ export class SwaggerTreeConverterService {
if(value.valueSource !== ValueSource[ValueSource.Definition]) {
return value;
} else {
- if(typeof value.value !== 'object') {
+ if(!value.value || typeof value.value !== 'object') {
value.value = {};
}
return value;