zhouna hace 3 años
padre
commit
7e36d68a73
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
             }
         },
         {