Handle null in note.

This commit is contained in:
Aditya Toshniwal 2021-07-29 18:31:50 +05:30 committed by Akshay Joshi
parent 1810d810d8
commit f6ac0d5877

View File

@ -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)=>({