From ede7ca0150e918c90fd20f644341d773dcdb0ad3 Mon Sep 17 00:00:00 2001 From: Rajat-Dabade Date: Wed, 17 Aug 2022 23:33:13 +0530 Subject: [PATCH] Code update for cypress test --- webapp/src/components/kanban/kanban.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/kanban/kanban.tsx b/webapp/src/components/kanban/kanban.tsx index 7ab4afa17..eeb99664d 100644 --- a/webapp/src/components/kanban/kanban.tsx +++ b/webapp/src/components/kanban/kanban.tsx @@ -61,7 +61,7 @@ const Kanban = (props: Props) => { const [defaultTemplateID, setDefaultTemplateID] = useState('') useEffect(() => { - if(currentView.fields.defaultTemplateId) { + if(currentView.fields && currentView.fields.defaultTemplateId) { cardTemplates.forEach((cardTemplate) => { if(cardTemplate.id === currentView.fields.defaultTemplateId) { setDefaultTemplateID(currentView.fields.defaultTemplateId)