Skip to content

Commit 1c53883

Browse files
committed
no data fix
1 parent 8aa9ccd commit 1c53883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/NoteComponents/NoteItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function NoteItem({ note }) {
4242
{Array.isArray(mediaList) ? (mediaList.map((imgId) => {
4343
const media = getMediaById(imgId)
4444
const src = typeof media === "object" && media && media.data
45-
return (
45+
return src && (
4646
<img key={imgId} onClick={() => setEditNoteId(note.id)} className="card-img-top" src={src} alt="note img"></img>
4747
)
4848
})) : null}

0 commit comments

Comments
 (0)