Revert "Fix unlove"

This commit is contained in:
Amaru8 2022-05-10 12:54:09 +02:00 committed by GitHub
parent 8754001f0d
commit 3c8c3d484c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3770,7 +3770,7 @@ const app = new Vue({
unlove(item) { unlove(item) {
let type = item.type.slice(-1) === "s" ? item.type : item.type + "s" let type = item.type.slice(-1) === "s" ? item.type : item.type + "s"
let id = item.attributes.playParams.catalogId ? item.attributes.playParams.catalogId : item.id let id = item.attributes.playParams.catalogId ? item.attributes.playParams.catalogId : item.id
if (item.id != null && (item.id.toString()).startsWith("i.")) { if (item.id.startsWith("i.")) {
if (!type.startsWith("library-")) { if (!type.startsWith("library-")) {
type = "library-" + type type = "library-" + type
} }