We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62fdce commit 9d2a35eCopy full SHA for 9d2a35e
frontend/src/components/pages/CourseDashboard.js
@@ -164,7 +164,7 @@ export function CourseDashboard() {
164
<img
165
className="rounded outline outline-1 outline-black/40 object-fill w-full h-full block aspect-[16/9]"
166
src={process.env.PUBLIC_URL + `/content/${course.ID}/thumbnail.png`}
167
- onError={(e)=>{e.target.onError = null; e.target.className = "invisible"}}
+ onError={(e)=>{e.target.onError = null; e.target.src = `/default_thumbnails/tn${course.ID % 5}.png`}}
168
alt="Thumbnail"
169
/>
170
</div>
0 commit comments