@faasjs/ant-design 0.0.3-beta.76 → 0.0.3-beta.77

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.
package/dist/index.js CHANGED
@@ -468,17 +468,15 @@ function Description(props) {
468
468
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd6.Descriptions, {
469
469
  ...props,
470
470
  title: (0, import_lodash_es4.isFunction)(props.renderTitle) ? props.renderTitle(props.dataSource) : props.title,
471
- children: props.items.map((item) => {
472
- return !item.if || item.if(props.dataSource) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd6.Descriptions.Item, {
473
- label: item.title || (0, import_lodash_es4.upperFirst)(item.id),
474
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DescriptionItemContent, {
475
- item,
476
- value: props.dataSource[item.id],
477
- values: props.dataSource,
478
- extendTypes: props.extendTypes
479
- })
480
- }, item.id) : null;
481
- }).filter(Boolean)
471
+ children: props.items.map((item) => item && (!item.if || item.if(props.dataSource)) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd6.Descriptions.Item, {
472
+ label: item.title || (0, import_lodash_es4.upperFirst)(item.id),
473
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DescriptionItemContent, {
474
+ item,
475
+ value: props.dataSource[item.id],
476
+ values: props.dataSource,
477
+ extendTypes: props.extendTypes
478
+ })
479
+ }, item.id) : null).filter(Boolean)
482
480
  });
483
481
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FaasDataWrapper, {
484
482
  render: ({ data }) => {
package/dist/index.mjs CHANGED
@@ -433,17 +433,15 @@ function Description(props) {
433
433
  return /* @__PURE__ */ jsx8(Descriptions, {
434
434
  ...props,
435
435
  title: isFunction(props.renderTitle) ? props.renderTitle(props.dataSource) : props.title,
436
- children: props.items.map((item) => {
437
- return !item.if || item.if(props.dataSource) ? /* @__PURE__ */ jsx8(Descriptions.Item, {
438
- label: item.title || upperFirst2(item.id),
439
- children: /* @__PURE__ */ jsx8(DescriptionItemContent, {
440
- item,
441
- value: props.dataSource[item.id],
442
- values: props.dataSource,
443
- extendTypes: props.extendTypes
444
- })
445
- }, item.id) : null;
446
- }).filter(Boolean)
436
+ children: props.items.map((item) => item && (!item.if || item.if(props.dataSource)) ? /* @__PURE__ */ jsx8(Descriptions.Item, {
437
+ label: item.title || upperFirst2(item.id),
438
+ children: /* @__PURE__ */ jsx8(DescriptionItemContent, {
439
+ item,
440
+ value: props.dataSource[item.id],
441
+ values: props.dataSource,
442
+ extendTypes: props.extendTypes
443
+ })
444
+ }, item.id) : null).filter(Boolean)
447
445
  });
448
446
  return /* @__PURE__ */ jsx8(FaasDataWrapper, {
449
447
  render: ({ data }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "0.0.3-beta.76",
3
+ "version": "0.0.3-beta.77",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",