From 3de7b3f560fb065034f9d4b1856d944bb3e1542b Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Thu, 28 Mar 2019 18:04:27 +0530 Subject: [PATCH] Fix incorrect maxlength param values --- frontend/my/src/Campaign.js | 8 ++++---- frontend/my/src/Import.js | 2 +- frontend/my/src/Lists.js | 6 ++++-- frontend/my/src/Subscriber.js | 4 ++-- frontend/my/src/Templates.js | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/frontend/my/src/Campaign.js b/frontend/my/src/Campaign.js index 8a2fe5a..6534674 100644 --- a/frontend/my/src/Campaign.js +++ b/frontend/my/src/Campaign.js @@ -396,7 +396,7 @@ class TheFormDef extends React.PureComponent { )} @@ -404,7 +404,7 @@ class TheFormDef extends React.PureComponent { {getFieldDecorator("subject", { initialValue: record.subject, rules: [{ required: true }] - })()} + })()} {getFieldDecorator("from_email", { @@ -416,7 +416,7 @@ class TheFormDef extends React.PureComponent { )} @@ -431,7 +431,7 @@ class TheFormDef extends React.PureComponent { ? subLists : this.props.data[cs.ModelLists].length === 1 ? [this.props.data[cs.ModelLists][0].id] - : undefined, + : [1], rules: [{ required: true }] })( )} + })()}
diff --git a/frontend/my/src/Lists.js b/frontend/my/src/Lists.js index 65c5f69..bba2942 100644 --- a/frontend/my/src/Lists.js +++ b/frontend/my/src/Lists.js @@ -147,7 +147,7 @@ class CreateFormDef extends React.PureComponent { {getFieldDecorator("name", { initialValue: record.name, rules: [{ required: true }] - })()} + })()} - this.handleShowEditForm(record)}>{text} + this.handleShowEditForm(record)}> + {text} +
) diff --git a/frontend/my/src/Subscriber.js b/frontend/my/src/Subscriber.js index a8ec567..5259490 100644 --- a/frontend/my/src/Subscriber.js +++ b/frontend/my/src/Subscriber.js @@ -184,13 +184,13 @@ class CreateFormDef extends React.PureComponent { {getFieldDecorator("email", { initialValue: record.email, rules: [{ required: true }] - })()} + })()}
{getFieldDecorator("name", { initialValue: record.name, rules: [{ required: true }] - })()} + })()} )} + })()} {getFieldDecorator("body", {