Hi I am trying to display images from an array in a grid via image component (named Offer_image). Array has other fields as well beside the image field.
I am using the following code in the response mapping of a query service -
Apperyio("Offer_image").attr("src",Appery.getImagePath(value.image));
This works fine wherever there is image stored in the corresponding record in the DB array.
Wherever image field is empty, it gives me an error as - Resource interpreted as Image but transferred with MIME type text/html: "http://appery.io/404.htm".
How can I catch this error and help the service to complete as success even if there are empty image fields in the array?