I am trying to import images dynamically, but in some cases the image source will be undefined.
My code looks like this:
src={import((`../assets/images/team-profiles/${member.profile.filename}.jpg`))}
width={400}
height={400}
alt=""
/> : "no image"}```
Even though it should not be rendering the `<Image/>` component when the image filename is undefined, it still gives me this error:
```Received unsupported format undefined from undefined. Currently only jpeg, jpg, png, tiff, webp, gif are supported for optimization.```