Browse Source

容错bug

zhouna 3 năm trước cách đây
mục cha
commit
7e36d68a73
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/FieldProblem/index.js

+ 1 - 1
src/components/FieldProblem/index.js

@@ -140,7 +140,7 @@ function FieldProblem() {
         { title: '上传字段值', dataIndex: 'tableVal', key: 'tableVal' },
         {
             title: '备注', dataIndex: 'description', key: 'description', render: (text, record) => {
-                return record.description.length > 20 ? <span title={record.description}>{record.description.substring(0, 20) + '...'}</span> : record.description;
+                return (record.description||"").length > 20 ? <span title={record.description}>{record.description.substring(0, 20) + '...'}</span> : record.description;
             }
         },
         {