fixing optional chaining operator in standard components

This commit is contained in:
Martin McKeaveney 2020-10-08 20:31:13 +01:00
parent 0e22a21303
commit 8dd32c6f6b
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@
}
function getPrettyName(record) {
return record[linkedModel?.primaryDisplay || "_id"]
return record[(linkedModel && linkedModel.primaryDisplay) || "_id"]
}
</script>