I am getting the image list from API and want to show it in the carousel but due to some error, it is not happening. I have tried forEach in this and also the error handling