From 068df708c0ca02f563579ba48c2ed924388107ed Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Tue, 5 Jul 2016 20:13:50 +0500 Subject: Fixing errors in system console (#3484) --- webapp/components/form_error.jsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'webapp/components/form_error.jsx') diff --git a/webapp/components/form_error.jsx b/webapp/components/form_error.jsx index 395adfaab..3c73759c5 100644 --- a/webapp/components/form_error.jsx +++ b/webapp/components/form_error.jsx @@ -8,7 +8,6 @@ export default class FormError extends React.Component { // accepts either a single error or an array of errors return { error: React.PropTypes.node, - noMargin: React.PropTypes.node, errors: React.PropTypes.arrayOf(React.PropTypes.node) }; } @@ -27,7 +26,6 @@ export default class FormError extends React.Component { // look for the first truthy error to display let message = this.props.error; - const noMargin = this.props.noMargin; if (!message) { for (const error of this.props.errors) { @@ -41,18 +39,8 @@ export default class FormError extends React.Component { return null; } - if (noMargin) { - return ( -
- -
- ); - } - return ( -
+
-- cgit v1.2.3-1-g7c22