mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-12 19:56:53 +00:00
🐛(frontend) only show the effect button when the track is defined
Guard the effect button so it only renders when the track exists. This prevents the frontend build from failing when TypeScript rightly flagged the possibility of an undefined track being passed to the effect logic.
This commit is contained in:
committed by
aleb_the_flash
parent
5723f29cef
commit
7461cd28ce
@@ -394,7 +394,7 @@ const VideoPreview = ({
|
||||
/>
|
||||
</div>
|
||||
<div className={styles.effectsOverlay}>
|
||||
<Effects videoTrack={videoTrack} />
|
||||
{videoTrack && <Effects videoTrack={videoTrack} />}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user