Skip to content

🎧 Your Personal Streaming Service

Simplify handle

Deluan83b8fa14c6ed
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}
/>
)
}