Handle null in note.

This commit is contained in:
Aditya Toshniwal authored and Akshay Joshi committed 2021-09-09 13:00:33 +05:30
1 parent 1810d810d8
commit f6ac0d5877
1 file changed
+2 -1
@@ -829,13 +829,14 @@ export function FormNote({text, className}) {
<Box className={className}>
<Paper elevation={0} className={classes.noteRoot}>
<Box paddingRight="0.25rem"><DescriptionIcon fontSize="small" /></Box>
<Box>{HTMLReactParse(text)}</Box>
<Box>{HTMLReactParse(text || '')}</Box>
</Paper>
</Box>
);
}
FormNote.propTypes = {
text: PropTypes.string,
className: CustomPropTypes.className,
};
const useStylesFormFooter = makeStyles((theme)=>({