Skip to content

Commit 0414acc

Browse files
committed
Merge branch 'next' into beta
2 parents 043c4dd + fb9dd9c commit 0414acc

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGELOG/CHANGELOG_next.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [2.13.0-rc.2](https://github.com/ReliefApplications/ems-backend/compare/v2.13.0-rc.1...v2.13.0-rc.2) (2025-02-27)
2+
3+
4+
### Bug Fixes
5+
6+
* nested fields from ref data can now be used as display field in contextual dashboards ([#1197](https://github.com/ReliefApplications/ems-backend/issues/1197)) ([943c108](https://github.com/ReliefApplications/ems-backend/commit/943c1083fcec4fd2147c070e24a6b858f9a4d19d)), closes [AB#110861](https://github.com/AB/issues/110861)
7+
18
# [2.13.0-rc.1](https://github.com/ReliefApplications/ems-backend/compare/v2.12.2...v2.13.0-rc.1) (2025-02-27)
29

310

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ems-backend",
3-
"version": "2.13.0-beta.1",
3+
"version": "2.13.0-rc.2",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

src/utils/context/getNewDashboardName.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const getNewDashboardName = async (
3737
: referenceData.data;
3838

3939
const item = data.find((x) => get(x, referenceData.valueField) == id);
40-
return item ? `${item?.[context.displayField]}` : undefined;
40+
return get(item, context.displayField);
4141
} else if ('resource' in context && context.resource) {
4242
const record = await Record.findById(id);
4343
return `${record.data[context.displayField]}`;

0 commit comments

Comments
 (0)