Closed denimsahu closed 7 months ago
Looks like it doesn't parse JSON correctly on the server side when storing them. A temporary workaround would be to do
product.images[0].startsWith("[") ? JSON.parse(product.images[0]) : product.images[0]
when displaying any single image on the frontend
Describe the bug when filtered category by id 1 that is Clothes category it's response data return badly formatted images list "images": [ "[\"https://i.imgur.com/QkIa5tT.jpeg\"", "\"https://i.imgur.com/jb5Yu0h.jpeg\"", "\"https://i.imgur.com/UlxxXyG.jpeg\"]" ],
Expected behavior a few days ago images list was alright something like this "images":["https://i.imgur.com/QkIa5tT.jpeg","https://i.imgur.com/jb5Yu0h.jpeg","https://i.imgur.com/UlxxXyG.jpeg"],"