Skip to content

Commit 85d26e4

Browse files
smackerdziraf
authored andcommitted
feat: support subproperties as a title
1 parent 7063f6f commit 85d26e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/decorators/resource/resource-decorator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class ResourceDecorator {
250250

251251
const properties = Object.values(this.properties)
252252
if (this.options.titleProperty) {
253-
titleProperty = properties.find((p) => p.propertyPath === this.options.titleProperty)
253+
titleProperty = this.getPropertyByKey(this.options.titleProperty)
254254
} else {
255255
titleProperty = properties.find((p) => p.isTitle())
256256
}

0 commit comments

Comments
 (0)