Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into condense-studio

Jonny Burgerf7e56ac1f67f
diff --cc packages/studio/src/components/AudioWaveform.tsx
index e643197544,6a75a22660..c1540410e7
--- a/packages/studio/src/components/AudioWaveform.tsx
+++ b/packages/studio/src/components/AudioWaveform.tsx
@@@ -322,8 -320,13 +324,12 @@@ export const AudioWaveform: React.FC<
]);
useEffect(() => {
+ if (!shouldRenderVolumeOverlay) {
+ return;
+ }
+
const {current: volumeCanvasElement} = volumeCanvas;
- const {current: containerElement} = containerRef;
- if (!volumeCanvasElement || !containerElement) {
+ if (!volumeCanvasElement) {
return;
}
@@@ -355,7 -354,7 +357,7 @@@
});
context.strokeStyle = LIGHT_TRANSPARENT;
context.stroke();
- }, [height, visualizationWidth, volume, doesVolumeChange]);
- }, [shouldRenderVolumeOverlay, visualizationWidth, volume]);
++ }, [height, shouldRenderVolumeOverlay, visualizationWidth, volume]);
if (error) {
// eslint-disable-next-line no-console