From 184800834762235336bc50a58bb5afa16a1d1170 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Wed, 6 Jan 2021 19:38:25 +0100
Subject: [PATCH] Add yet another fallback level for images

---
 src/routes/main/MediaEntry.tsx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/routes/main/MediaEntry.tsx b/src/routes/main/MediaEntry.tsx
index dfa2e08..5b5402f 100644
--- a/src/routes/main/MediaEntry.tsx
+++ b/src/routes/main/MediaEntry.tsx
@@ -25,6 +25,10 @@ function findImage(
         }
     }
 
+    if (languages.includes(null) && imageList.length) {
+        return imageList[0];
+    }
+
     return null;
 }
 
-- 
GitLab