« get me outta code hell

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:
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}) =>