File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -432,7 +432,9 @@ const SummaryAgendaItems = ({ onUpdate }: any) => {
432432 { myVariable . workgroup ?. preferred_template ?. agendaItems [ 0 ] ?. agenda == 1 && item . agenda == '' && ( < button className = { styles [ 'remove-button' ] } type = "button" onClick = { ( ) => removeAgendaItem ( agendaIndex ) } > Remove Agenda</ button > ) }
433433 </ div >
434434 ) ) }
435- { myVariable . workgroup ?. preferred_template ?. agendaItems [ 0 ] ?. agenda == 1 && ( < button className = { styles [ 'add-button' ] } type = "button" onClick = { addAgendaItem } > Add Agenda Item</ button > ) }
435+ { ( ( myVariable . workgroup ?. preferred_template ?. agendaItems [ 0 ] ?. agenda == 0 && agendaItems . length == 0 ) ||
436+ ( myVariable . workgroup ?. preferred_template ?. agendaItems [ 0 ] ?. agenda == 1 ) )
437+ && ( < button className = { styles [ 'add-button' ] } type = "button" onClick = { addAgendaItem } > Add Agenda Item</ button > ) }
436438 </ div >
437439 ) ;
438440} ;
You can’t perform that action at this time.
0 commit comments