diff --git a/web/pgadmin/static/js/components/FormComponents.jsx b/web/pgadmin/static/js/components/FormComponents.jsx index 3254acfad..a44cb4b1b 100644 --- a/web/pgadmin/static/js/components/FormComponents.jsx +++ b/web/pgadmin/static/js/components/FormComponents.jsx @@ -900,6 +900,18 @@ FormInputColor.propTypes = { testcid: PropTypes.string, }; +export function PlainString({controlProps, value}) { + let finalValue = value; + if(controlProps?.formatter) { + finalValue = controlProps.formatter.fromRaw(finalValue); + } + return {finalValue}; +} +PlainString.propTypes = { + controlProps: PropTypes.object, + value: PropTypes.any, +}; + export function FormNote({text, className}) { const classes = useStyles(); return (