« get me outta code hell

find: stop providing thingConstructors to include() - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/album.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-01-23 20:16:30 -0400
committer(quasar) nebula <qznebula@protonmail.com>2026-01-23 20:16:30 -0400
commit723a8b9e79601f445fd83517ba93c75e93368b47 (patch)
tree1ca44d752356eb32240590fbb5e10db20af50999 /src/data/things/album.js
parent37c97832465dafd914caa4cbbea2512a25eed64a (diff)
find: stop providing thingConstructors to include()
Diffstat (limited to 'src/data/things/album.js')
-rw-r--r--src/data/things/album.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js
index c9999f7c..b93c7479 100644
--- a/src/data/things/album.js
+++ b/src/data/things/album.js
@@ -513,9 +513,9 @@ export class Album extends Thing {
 
       bindTo: 'artworkData',
 
-      include: (artwork, {Artwork, Album}) =>
-        artwork instanceof Artwork &&
-        artwork.thing instanceof Album &&
+      include: (artwork) =>
+        artwork.isArtwork &&
+        artwork.thing.isAlbum &&
         artwork === artwork.thing.coverArtworks[0],
 
       getMatchableNames: ({thing: album}) =>