@pisell/private-materials 3.0.32 → 3.0.33

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.
@@ -144,15 +144,16 @@ var Forms = Provider(function (props) {
144
144
  });
145
145
  case 4:
146
146
  data = _context3.sent;
147
+ data = data || [];
147
148
  if (params.type === "form") {
148
149
  // 去除预约主体
149
150
  data = data.filter(function (d) {
150
151
  return d.form_id !== (params === null || params === void 0 ? void 0 : params.form_id);
151
152
  });
152
153
  }
153
- _context3.next = 8;
154
+ _context3.next = 9;
154
155
  return getFormData(data);
155
- case 8:
156
+ case 9:
156
157
  formData = _context3.sent;
157
158
  dispatch({
158
159
  type: "setForm",
@@ -162,18 +163,18 @@ var Forms = Provider(function (props) {
162
163
  }
163
164
  });
164
165
  setLoading(false);
165
- _context3.next = 17;
166
+ _context3.next = 18;
166
167
  break;
167
- case 13:
168
- _context3.prev = 13;
168
+ case 14:
169
+ _context3.prev = 14;
169
170
  _context3.t0 = _context3["catch"](1);
170
171
  setLoading(false);
171
172
  console.log("form_error", _context3.t0);
172
- case 17:
173
+ case 18:
173
174
  case "end":
174
175
  return _context3.stop();
175
176
  }
176
- }, _callee3, null, [[1, 13]]);
177
+ }, _callee3, null, [[1, 14]]);
177
178
  }));
178
179
  return function geForms() {
179
180
  return _ref3.apply(this, arguments);
@@ -98,6 +98,7 @@ var Forms = (0, import_model.Provider)((props) => {
98
98
  relation_id: state.bookingDetail.bookings.id
99
99
  // _config: { useCache: true },
100
100
  });
101
+ data = data || [];
101
102
  if (params.type === "form") {
102
103
  data = data.filter((d) => d.form_id !== (params == null ? void 0 : params.form_id));
103
104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.32",
3
+ "version": "3.0.33",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -58,8 +58,8 @@
58
58
  "ahooks": "^3.7.6",
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
- "@pisell/utils": "1.0.23",
62
61
  "@pisell/date-picker": "1.0.68",
62
+ "@pisell/utils": "1.0.23",
63
63
  "@pisell/icon": "0.0.8"
64
64
  },
65
65
  "peerDependencies": {