mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Fix object destructuring for song update
This commit is contained in:
parent
1a3e1e7f1c
commit
8c14092c41
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ export const songStore = {
|
|||
http.put('songs', {
|
||||
data,
|
||||
songs: map(songs, 'id')
|
||||
}, ({ songs }) => {
|
||||
}, ({ data: songs }) => {
|
||||
each(songs, song => this.syncUpdatedSong(song))
|
||||
alerts.success(`Updated ${pluralize(songs.length, 'song')}.`)
|
||||
resolve(songs)
|
||||
|
|
Loading…
Reference in a new issue