Explorar el Código

Fix workId undefined, close #246

afc163 hace 8 años
padre
commit
c206828c60
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/routes/Forms/TableForm.js

+ 1 - 1
src/routes/Forms/TableForm.js

@@ -88,7 +88,7 @@ export default class TableForm extends PureComponent {
         this.clickedCancel = false;
         return;
       }
-      const target = this.getRowByKey(key);
+      const target = this.getRowByKey(key) || {};
       if (!target.workId || !target.name || !target.department) {
         message.error('请填写完整成员信息。');
         e.target.focus();