diff --git a/web/pgadmin/static/js/SchemaView/MappedControl.jsx b/web/pgadmin/static/js/SchemaView/MappedControl.jsx index 78353a07097..c0bb2561fb7 100644 --- a/web/pgadmin/static/js/SchemaView/MappedControl.jsx +++ b/web/pgadmin/static/js/SchemaView/MappedControl.jsx @@ -401,7 +401,12 @@ export const MappedFormControl = ({ } if (typeof (field.type) === 'function') { - const typeProps = evalFunc(null, field.type, state); + let typeState = state; + if (accessPath && accessPath.length > 1) { + const parentPath = accessPath.slice(0, -1); + typeState = schemaState.value(parentPath); + } + const typeProps = evalFunc(null, field.type, typeState); newProps = { ...newProps, ...typeProps,