Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
co-authored by
Camille Moussu
parent
42f5d8e1a9
commit
cdaed8a7c1
@@ -38,7 +38,7 @@ function CalendarAccordion({
|
||||
const allCalendars = useAppSelector((state) => state.calendars.list);
|
||||
|
||||
const [expended, setExpended] = useState(defaultExpanded);
|
||||
if (calendars.length === 0 && !defaultExpanded) return null;
|
||||
if (calendars.length === 0 && !showAddButton) return null;
|
||||
|
||||
return (
|
||||
<Accordion
|
||||
|
||||
Reference in New Issue
Block a user