We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f1444c commit d1c4c93Copy full SHA for d1c4c93
1 file changed
web/src/shared/video-tutorials/VideoTutorialsModal.tsx
@@ -18,6 +18,9 @@ export const VideoTutorialsModal = () => {
18
useEffect(() => {
19
if (isOpen && sections.length > 0 && sections[0].videos.length > 0) {
20
setSelectedVideo(sections[0].videos[0]);
21
+ } else {
22
+ // Clear selection when modal is closed or when there are no videos to show
23
+ setSelectedVideo(null);
24
}
25
}, [isOpen, sections]);
26
0 commit comments