afc163 8 лет назад
Родитель
Сommit
c206828c60
1 измененных файлов с 1 добавлено и 1 удалено
  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();