diff --git a/CHANGELOG.md b/CHANGELOG.md index df2471a2c8..c3a08d6c78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ their drop-down menus. * Fix desktop styling bug where buttons inside a `Toast` could be rendered with a different color than the rest of the toast contents. +* Fix `GridModel` bug where `Store` would fail to recognize dot-separated field names as paths + when provided as part of a field spec in object form. ## v53.0.0 - 2022-10-19 diff --git a/cmp/grid/GridModel.js b/cmp/grid/GridModel.js index 68027a82f0..b82e660f86 100644 --- a/cmp/grid/GridModel.js +++ b/cmp/grid/GridModel.js @@ -1445,7 +1445,7 @@ export class GridModel extends HoistModel { const newFields = []; forEach(leafColsByFieldName, (col, name) => { if (name !== 'id' && !storeFieldNames.includes(name)) { - newFields.push({name, displayName: col.displayName, ...col.fieldSpec}); + newFields.push({displayName: col.displayName, ...col.fieldSpec, name}); } });