Fix stereo boolean dom error differently.

This commit is contained in:
Matthew Stratford 2020-09-24 23:27:47 +01:00
parent 6a74b32d89
commit de9774549b

View file

@ -123,10 +123,7 @@ export function VUMeter(props: VUMeterProps) {
} }
}, [peakL, peakR, props.range, props.greenRange, props.stereo]); }, [peakL, peakR, props.range, props.greenRange, props.stereo]);
const { value, range, greenRange, source, ...rest } = props; const { value, range, greenRange, source, stereo, ...rest } = props;
// Can't put boolean values into HTML DOM.
delete rest.stereo;
return <canvas ref={canvasRef} {...rest} />; return <canvas ref={canvasRef} {...rest} />;
} }