From 83b8fa14c6ed0351689eee3c596ed8903c437b07 Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 19 Jun 2020 12:37:26 -0400 Subject: [PATCH] Simplify handle --- ui/src/audioplayer/Player.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/src/audioplayer/Player.js b/ui/src/audioplayer/Player.js index e08808a0e..e6eac9f43 100644 --- a/ui/src/audioplayer/Player.js +++ b/ui/src/audioplayer/Player.js @@ -142,9 +142,7 @@ const Player = () => { onAudioPlay={OnAudioPlay} onAudioPause={onAudioPause} onAudioEnded={onAudioEnded} - onPlayIndexChange={(playIndex) => { - setPlayIndex(playIndex) - }} + onPlayIndexChange={setPlayIndex} /> ) }