Skip to content

Commit

Permalink
admin: Simplify an unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Nov 28, 2023
1 parent 5ceecd1 commit 93f9815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/pages/playlist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function viewPlaylistStageChanges (changes: Song) {
if (
viewPlaylistData.value.some(song => song.$id === changes.$id) &&
Object.keys(changes).length === 1 &&
Object.keys(changes)[0] === '$id'
changes.$id
) {
if (viewPlaylistChangesData.value.some(song => song.$id === changes.$id)) {
viewPlaylistChangesData.value.splice(viewPlaylistChangesData.value.findIndex(song => song.$id === changes.$id), 1)
Expand Down

0 comments on commit 93f9815

Please sign in to comment.