From 33a699b8ae4d89ad32b886e6023921aabe2b843e Mon Sep 17 00:00:00 2001 From: mabashian Date: Tue, 31 Mar 2020 10:57:30 -0400 Subject: [PATCH] Display form errors on new lines if there are multiple --- .../src/components/FormField/FormSubmitError.jsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/FormField/FormSubmitError.jsx b/awx/ui_next/src/components/FormField/FormSubmitError.jsx index c502d5767e..1c90e11da5 100644 --- a/awx/ui_next/src/components/FormField/FormSubmitError.jsx +++ b/awx/ui_next/src/components/FormField/FormSubmitError.jsx @@ -33,7 +33,17 @@ function FormSubmitError({ error }) { return null; } - return ; + return ( +
{msg}
) + : errorMessage + } + /> + ); } export default FormSubmitError;