Fix react warnings (#317)

This commit is contained in:
Infinite
2020-01-23 14:57:05 +01:00
parent 71dd939806
commit 498491e82d
6 changed files with 30 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ export const GalleryList: React.FC = () => {
<td>
<Link to={`/galleries/${gallery.id}`}>
{gallery.files.length > 0 ? (
<img alt="" src={`${gallery.files[0].path}?thumb=true`} />
<img alt={gallery.title ?? ''} src={`${gallery.files[0].path}?thumb=true`} />
) : (
undefined
)}