Skip to content

Commit

Permalink
chore: ignore linter warning in repeat effect
Browse files Browse the repository at this point in the history
  • Loading branch information
neindochoh committed Nov 14, 2023
1 parent ded8e7a commit 53320e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/shared/AudioViewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,6 @@ const AudioViewer = ({
redrawWaveform(height);

setIsReady(true);

// eslint-disable-next-line @typescript-eslint/no-explicit-any
//(waveform.current?.backend as any).media.loop = repeat;
});

// In case this widget was paused from the outside
Expand Down Expand Up @@ -334,6 +331,7 @@ const AudioViewer = ({
]);

useEffect(() => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(waveform.current?.backend as any).media.loop = repeat;
}, [repeat]);

Expand Down

0 comments on commit 53320e9

Please sign in to comment.