From c206828c6034dcc157a09141bf14877c5930c7b0 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 22 Nov 2017 18:07:36 +0800 Subject: [PATCH] Fix workId undefined, close #246 --- src/routes/Forms/TableForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Forms/TableForm.js b/src/routes/Forms/TableForm.js index 44f91339..f281884c 100644 --- a/src/routes/Forms/TableForm.js +++ b/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(); -- GitLab