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 8aa9ccd commit 1c53883Copy full SHA for 1c53883
client/src/NoteComponents/NoteItem.js
@@ -42,7 +42,7 @@ function NoteItem({ note }) {
42
{Array.isArray(mediaList) ? (mediaList.map((imgId) => {
43
const media = getMediaById(imgId)
44
const src = typeof media === "object" && media && media.data
45
- return (
+ return src && (
46
<img key={imgId} onClick={() => setEditNoteId(note.id)} className="card-img-top" src={src} alt="note img"></img>
47
)
48
})) : null}
0 commit comments