replaced filter with some/findLast

This commit is contained in:
Shiny Nematoda
2023-03-04 08:03:45 +00:00
parent 690031c010
commit 67c55426b9
3 changed files with 3 additions and 3 deletions

View File

@@ -88,7 +88,7 @@ export default {
},
}).then(json => {
if (json.error) alert(json.error);
else if (json.filter(playlist => playlist.id === playlistId).length > 0) this.admin = true;
else if (json.some(playlist => playlist.id === playlistId)) this.admin = true;
});
this.isPlaylistBookmarked();
},