Skip to content

Commit

Permalink
Fix workId undefined, close #246
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Nov 22, 2017
1 parent 81577c8 commit c206828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/Forms/TableForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c206828

Please sign in to comment.