From 970fda3b1dfe0f080ed6b41f632db79d19d9bab0 Mon Sep 17 00:00:00 2001 From: Rajat Dabade Date: Fri, 2 Sep 2022 22:49:02 +0530 Subject: [PATCH] Undefined check for propertyValue (#3769) --- webapp/src/components/propertyValueElement.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/propertyValueElement.tsx b/webapp/src/components/propertyValueElement.tsx index c14640715..41532a67b 100644 --- a/webapp/src/components/propertyValueElement.tsx +++ b/webapp/src/components/propertyValueElement.tsx @@ -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 (