Skip to content

Commit 21e4784

Browse files
committed
AgendaList - fix optional extraction
1 parent 52fc37a commit 21e4784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expandableCalendar/agendaList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const AgendaList = (props: AgendaListProps) => {
8585
const {date, updateSource, setDate, setDisabled} = useContext(Context);
8686
const style = useRef(styleConstructor(theme));
8787
const list = useRef<any>();
88-
const _topSection = useRef(sections[0].title);
88+
const _topSection = useRef(sections[0]?.title);
8989
const didScroll = useRef(false);
9090
const sectionScroll = useRef(false);
9191
const sectionHeight = useRef(0);

0 commit comments

Comments
 (0)