Javascript – How can i show or hide an Image element if property is null in array map from returned array?
As you can see, the property mainImage in the array is null and it gives me the error: Error: Cannot read properties of null (reading 'url') I wanted to show or hide the Image element if the mainImage property in…