From ba119b35e44bb0d43c3f23c6b90ca54044fad340 Mon Sep 17 00:00:00 2001 From: Greg Solomon Date: Wed, 26 Oct 2022 14:46:44 -0400 Subject: [PATCH] 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 --- CHANGELOG.md | 2 ++ cmp/grid/GridModel.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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}); } });