Skip to content

Commit e62fdce

Browse files
committed
Add default thumbnails
1 parent 7394c3d commit e62fdce

File tree

6 files changed

+1
-1
lines changed

6 files changed

+1
-1
lines changed
165 Bytes
Loading
165 Bytes
Loading
165 Bytes
Loading
165 Bytes
Loading
165 Bytes
Loading

frontend/src/components/pages/CourseDashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function CourseDashboard() {
145145
<img
146146
className="rounded outline outline-1 outline-black/40 object-fill w-full h-full block aspect-[16/9]"
147147
src={process.env.PUBLIC_URL + `/content/${course.ID}/thumbnail.png`}
148-
onError={(e)=>{e.target.onError = null; e.target.className = "invisible"}}
148+
onError={(e)=>{e.target.onError = null; e.target.src = `/default_thumbnails/tn${course.ID % 5}.png`}}
149149
alt="Thumbnail"
150150
/>
151151
</div>

0 commit comments

Comments
 (0)