Skip to content

Commit

Permalink
feat: support subproperties as a title
Browse files Browse the repository at this point in the history
  • Loading branch information
smacker authored and dziraf committed Mar 28, 2024
1 parent 7063f6f commit 85d26e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/decorators/resource/resource-decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class ResourceDecorator {

const properties = Object.values(this.properties)
if (this.options.titleProperty) {
titleProperty = properties.find((p) => p.propertyPath === this.options.titleProperty)
titleProperty = this.getPropertyByKey(this.options.titleProperty)
} else {
titleProperty = properties.find((p) => p.isTitle())
}
Expand Down

0 comments on commit 85d26e4

Please sign in to comment.