From 934609f69d641123622d4b5c7157c183c65c4008 Mon Sep 17 00:00:00 2001 From: ThrRip Date: Wed, 29 Nov 2023 06:31:41 +0800 Subject: [PATCH] admin: Declare a private variable as `_` to avoid confusion --- packages/admin/pages/playlist.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/admin/pages/playlist.vue b/packages/admin/pages/playlist.vue index b741e7e..9b517d0 100644 --- a/packages/admin/pages/playlist.vue +++ b/packages/admin/pages/playlist.vue @@ -180,7 +180,7 @@ function viewPlaylistStageChanges (changes: Song) { // Modify song if (viewPlaylistData.value.some(song => song.$id === changes.$id) && Object.keys(changes).length > 1) { - const song = viewPlaylistData.value.find(song => song.$id === changes.$id) + const song = viewPlaylistData.value.find(_ => _.$id === changes.$id) let changesValid = false for (const field in changes) { // @ts-ignore