diff --git a/packages/plugins/@hera/plugin-rental/package.json b/packages/plugins/@hera/plugin-rental/package.json index d4de3cf9a..c4e6f838f 100644 --- a/packages/plugins/@hera/plugin-rental/package.json +++ b/packages/plugins/@hera/plugin-rental/package.json @@ -1,6 +1,6 @@ { "name": "@hera/plugin-rental", - "version": "1.4.0-alpha.9", + "version": "1.4.0-alpha.10", "main": "dist/server/index.js", "displayName": "professional construction materials rental system - customized based on hera", "displayName.zh-CN": "专业建材租赁系统 - 基于赫拉定制", diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx index dcd152f74..b7eadbbd8 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx @@ -140,7 +140,7 @@ const subtotal = (rule: any, itemData: any, productCategory: any, reqWeightRules unit = '吨'; } else { // 查询重量规则 - const weightRule = reqWeightRules.data.data.find( + const weightRule = reqWeightRules?.data?.data?.find( (weight_item) => weight_item.logic_id === rule?.conversion_logic_id && (weight_item.product_id === itemData.product?.id ||