@pisell/private-materials 3.0.93 → 3.0.94

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.
@@ -100,7 +100,7 @@ var Forms = Provider(function (props) {
100
100
  }
101
101
  arr = [];
102
102
  res.forEach(function (item, index) {
103
- arr = arr.concat(item.map(function (d) {
103
+ arr = arr.concat((item || []).map(function (d) {
104
104
  return _objectSpread(_objectSpread({}, d), {}, {
105
105
  is_franchisor: index === 1 ? 1 : 0
106
106
  });
@@ -78,7 +78,7 @@ var Forms = (0, import_model.Provider)((props) => {
78
78
  let arr = [];
79
79
  res.forEach((item, index) => {
80
80
  arr = arr.concat(
81
- item.map((d) => {
81
+ (item || []).map((d) => {
82
82
  return {
83
83
  ...d,
84
84
  is_franchisor: index === 1 ? 1 : 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.93",
3
+ "version": "3.0.94",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -58,9 +58,9 @@
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.25",
62
61
  "@pisell/icon": "0.0.11",
63
- "@pisell/date-picker": "1.0.88"
62
+ "@pisell/date-picker": "1.0.88",
63
+ "@pisell/utils": "1.0.27"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "react": "^18.0.0",