Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion web/pgadmin/static/js/SchemaView/MappedControl.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,12 @@ export const MappedFormControl = ({
// sibling fields from its own row, mirroring what field.cell() already
// gets via its row argument. Existing field.type() callbacks that only
// take a single argument are unaffected.
const typeProps = evalFunc(null, field.type, state, depVals);
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, depVals);
newProps = {
...newProps,
...typeProps,
Expand Down