Skip to content

Commit a8609f3

Browse files
committed
fix: added ternary check
1 parent cea7434 commit a8609f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/pages/tutorials/tutorials-tab-mobile.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const TutorialsTabMobile = observer(({ tutorial_tabs, prev_active_tutorials }: T
6969

7070
if (selectElement) {
7171
const parent_element = selectElement;
72-
const child_element = selectElement?.options[3];
72+
const child_element = selectElement?.options?.[3];
7373

7474
if (parent_element && child_element && parent_element?.contains(child_element)) {
7575
parent_element?.removeChild(child_element);

0 commit comments

Comments
 (0)