Skip to content

Commit

Permalink
fix: fix slice mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Clarkkkk committed Jul 31, 2024
1 parent 2c3bcad commit 7595469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/useSonglistsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export const useSonglistsStore = defineStore('songlists', () => {
offset: 0
})
createdSonglists.value = createdSonglists.value.concat(
res.playlist.slice(0, createdCount.value)
res.playlist.slice(1, createdCount.value)
)
collectedSonglists.value = collectedSonglists.value.concat(
res.playlist.slice(createdCount.value + 1)
res.playlist.slice(createdCount.value)
)
}

Expand Down

0 comments on commit 7595469

Please sign in to comment.