easy3wui 1.4.211 → 1.4.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -129,12 +129,15 @@ var Easy3wFlow = function (_Component) {
129
129
  flowCurMainCode = _this$props.flowCurMainCode;
130
130
  // 初始化选中节点
131
131
 
132
- var initMainCode = flowCurMainCode || flowData[0].code;
133
- var findObj = flowData.find(function (item) {
134
- return item.status === '10';
135
- });
136
- if (findObj) {
137
- initMainCode = flowCurMainCode || findObj.code;
132
+ var initMainCode = '';
133
+ if (flowLength > 0) {
134
+ initMainCode = flowCurMainCode || flowData[0].code;
135
+ var findObj = flowData.find(function (item) {
136
+ return item.status === '10';
137
+ });
138
+ if (findObj) {
139
+ initMainCode = flowCurMainCode || findObj.code;
140
+ }
138
141
  }
139
142
  var renderTopTemp = flowData.map(function (flow, index) {
140
143
  var styleflowcircle = (0, _classnames2['default'])(['flowcircle', 'haiergrey']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.4.211",
3
+ "version": "1.4.212",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",