@magicbe/antd-crud 0.0.31 → 0.0.32

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.
@@ -179,6 +179,8 @@ var Table = function (_a, ref) {
179
179
  if (params === void 0) { params = {}; }
180
180
  setLoading(true);
181
181
  var filter_data = (_a = filter_ref === null || filter_ref === void 0 ? void 0 : filter_ref.current) === null || _a === void 0 ? void 0 : _a.form.getFieldsValue();
182
+ if (!getSources)
183
+ return console.warn("getSources is not defined");
182
184
  getSources(Object.assign({}, params, filter_data)).then(function (_a) {
183
185
  var total = _a.total, sources = _a.sources, page = _a.page, size = _a.size;
184
186
  setSources(sources);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicbe/antd-crud",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "antd crud table",
5
5
  "author": "wang quan",
6
6
  "private": false,