Fixed render loop on voice notes draft
This commit is contained in:
parent
5dff1768bd
commit
546be943ee
1 changed files with 3 additions and 2 deletions
|
@ -137,9 +137,10 @@ function SizedWaveformScrubber({
|
|||
onScrub,
|
||||
width,
|
||||
}: SizedWaveformScrubberProps) {
|
||||
const handleCorrupted = () => {
|
||||
const handleCorrupted = useCallback(() => {
|
||||
log.warn('SizedWaveformScrubber: audio corrupted');
|
||||
};
|
||||
}, []);
|
||||
|
||||
const { peaks, duration } = useComputePeaks({
|
||||
audioUrl,
|
||||
activeDuration,
|
||||
|
|
Loading…
Add table
Reference in a new issue