Skip to content

Commit

Permalink
fix(UNT-T30512): Issue #129 Handle division by 0
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-d-simform committed Nov 13, 2024
1 parent e71c116 commit 58e83a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Waveform/Waveform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export const Waveform = forwardRef<IWaveformRef, IWaveform>((props, ref) => {
const result = await extractWaveformData({
path: path,
playerKey: `PlayerFor${path}`,
noOfSamples: noOfSample,
noOfSamples: Math.max(noOfSample, 1),
});
(onChangeWaveformLoadState as Function)?.(false);

Expand Down

0 comments on commit 58e83a8

Please sign in to comment.