Skip to content

Commit

Permalink
add conditional operator
Browse files Browse the repository at this point in the history
  • Loading branch information
David Scheier committed Mar 7, 2024
1 parent fbc76da commit 13af6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messages/Gallery/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Gallery: FC = () => {
firstButton?.focus();
}, 200);
}
}, [carouselContentId, config?.settings?.widgetSettings.enableAutoFocus]);
}, [carouselContentId, config?.settings?.widgetSettings?.enableAutoFocus]);

if (!elements || elements?.length === 0) return null;

Expand Down

0 comments on commit 13af6de

Please sign in to comment.