Skip to content

Commit

Permalink
Merge pull request nextcloud#2064 from Y0hy0h/patch-1
Browse files Browse the repository at this point in the history
Fix custom labels not being displayed
  • Loading branch information
skjnldsv authored Feb 18, 2021
2 parents 7b5e734 + 2e8a06f commit 3dc0de2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/ContactDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,9 @@ export default {
* @returns {boolean}
*/
canDisplay(property) {
const propModel = rfcProps.properties[property.name]
// Make sure we have some model for the property and check for ITEM.PROP custom label format
const propModel = rfcProps.properties[property.name.split('.').pop()]

const propType = propModel && propModel.force
? propModel.force
: property.getDefaultType()
Expand Down

0 comments on commit 3dc0de2

Please sign in to comment.