Fix stereo boolean dom error differently.
This commit is contained in:
parent
6a74b32d89
commit
de9774549b
1 changed files with 1 additions and 4 deletions
|
@ -123,10 +123,7 @@ export function VUMeter(props: VUMeterProps) {
|
|||
}
|
||||
}, [peakL, peakR, props.range, props.greenRange, props.stereo]);
|
||||
|
||||
const { value, range, greenRange, source, ...rest } = props;
|
||||
|
||||
// Can't put boolean values into HTML DOM.
|
||||
delete rest.stereo;
|
||||
const { value, range, greenRange, source, stereo, ...rest } = props;
|
||||
|
||||
return <canvas ref={canvasRef} {...rest} />;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue