From f6ac0d587781221a15462983adba7c7142f2963d Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Thu, 29 Jul 2021 18:31:50 +0530 Subject: [PATCH] Handle null in note. --- web/pgadmin/static/js/components/FormComponents.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/pgadmin/static/js/components/FormComponents.jsx b/web/pgadmin/static/js/components/FormComponents.jsx index e0a9be7c5..37fd3492f 100644 --- a/web/pgadmin/static/js/components/FormComponents.jsx +++ b/web/pgadmin/static/js/components/FormComponents.jsx @@ -829,13 +829,14 @@ export function FormNote({text, className}) { - {HTMLReactParse(text)} + {HTMLReactParse(text || '')} ); } FormNote.propTypes = { text: PropTypes.string, + className: CustomPropTypes.className, }; const useStylesFormFooter = makeStyles((theme)=>({