@cqsjjb/jjb-react-admin-component 3.0.29 → 3.0.30

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.
@@ -152,7 +152,7 @@ function RenderText(props) {
152
152
  value.load().then(res => res.json()).then(res => {
153
153
  if (res.success) {
154
154
  setOptions(res.data);
155
- setText(value.selected.map(i => `${i.key}&${i.label}`));
155
+ setText(value?.selected?.map?.(i => `${i.key}&${i.label}`));
156
156
  }
157
157
  setLoading(false);
158
158
  });
@@ -190,7 +190,7 @@ function RenderText(props) {
190
190
  value.load().then(res => res.json()).then(res => {
191
191
  if (res.success) {
192
192
  setOptions(res.data);
193
- setText(value.selected.map(i => `${i.key}&${i.label}`));
193
+ setText(value?.selected?.map?.(i => `${i.key}&${i.label}`));
194
194
  }
195
195
  setLoading(false);
196
196
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqsjjb/jjb-react-admin-component",
3
- "version": "3.0.29",
3
+ "version": "3.0.30",
4
4
  "description": "jjb-react-admin-组件库@new",
5
5
  "main": "index.js",
6
6
  "author": "jjb-front-team",