Code update for cypress test
This commit is contained in:
parent
058827144d
commit
ede7ca0150
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ const Kanban = (props: Props) => {
|
||||||
const [defaultTemplateID, setDefaultTemplateID] = useState('')
|
const [defaultTemplateID, setDefaultTemplateID] = useState('')
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(currentView.fields.defaultTemplateId) {
|
if(currentView.fields && currentView.fields.defaultTemplateId) {
|
||||||
cardTemplates.forEach((cardTemplate) => {
|
cardTemplates.forEach((cardTemplate) => {
|
||||||
if(cardTemplate.id === currentView.fields.defaultTemplateId) {
|
if(cardTemplate.id === currentView.fields.defaultTemplateId) {
|
||||||
setDefaultTemplateID(currentView.fields.defaultTemplateId)
|
setDefaultTemplateID(currentView.fields.defaultTemplateId)
|
||||||
|
|
Loading…
Reference in a new issue