Undefined check for propertyValue (#3769)
This commit is contained in:
parent
a6ca2c2011
commit
970fda3b1d
1 changed files with 4 additions and 2 deletions
|
@ -19,8 +19,10 @@ type Props = {
|
|||
const PropertyValueElement = (props:Props): JSX.Element => {
|
||||
const {card, propertyTemplate, readOnly, showEmptyPlaceholder, board} = props
|
||||
|
||||
const propertyValue = card.fields.properties[propertyTemplate.id]
|
||||
|
||||
let propertyValue = card.fields.properties[propertyTemplate.id]
|
||||
if(propertyValue === undefined) {
|
||||
propertyValue = ''
|
||||
}
|
||||
const property = propsRegistry.get(propertyTemplate.type)
|
||||
const Editor = property.Editor
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue