Commit c206828c authored by afc163's avatar afc163

Fix workId undefined, close #246

parent 81577c81
...@@ -88,7 +88,7 @@ export default class TableForm extends PureComponent { ...@@ -88,7 +88,7 @@ export default class TableForm extends PureComponent {
this.clickedCancel = false; this.clickedCancel = false;
return; return;
} }
const target = this.getRowByKey(key); const target = this.getRowByKey(key) || {};
if (!target.workId || !target.name || !target.department) { if (!target.workId || !target.name || !target.department) {
message.error('请填写完整成员信息。'); message.error('请填写完整成员信息。');
e.target.focus(); e.target.focus();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment