🎥 Make videos programmatically with React
Remove waveform error message (#9500)
Jonny Burger8d8666b8bbc7
diff --git a/packages/studio/src/components/AudioWaveform.tsx b/packages/studio/src/components/AudioWaveform.tsxindex 06cb3fc6e9..0fd5243d84 100644--- a/packages/studio/src/components/AudioWaveform.tsx+++ b/packages/studio/src/components/AudioWaveform.tsx@@ -46,17 +46,6 @@ const getContainerStyle = (height: number): React.CSSProperties => {};};-const errorMessage: React.CSSProperties = {- fontSize: 13,- paddingTop: 6,- paddingBottom: 6,- paddingLeft: 12,- paddingRight: 12,- alignSelf: 'flex-start',- maxWidth: 450,- opacity: 0.75,-};-const getWaveformErrorMessage = () => {return new Error('No waveform available. The audio could not be decoded or may not support CORS.',@@ -398,14 +387,7 @@ export const AudioWaveform: React.FC<{}, [height, parsedVolume, shouldRenderVolumeOverlay, visualizationWidth]);if (error) {- return (- <div style={getContainerStyle(height)}>- <div style={errorMessage}>- No waveform available. The audio could not be decoded or may not- support CORS.- </div>- </div>- );+ return null;}if (!canUseWorkerPath && !peaks) {