diff --git a/UI/assets/js/products.js b/UI/assets/js/products.js index af108c3..8dbed13 100644 --- a/UI/assets/js/products.js +++ b/UI/assets/js/products.js @@ -7,12 +7,12 @@ const getProducts = () => { }) .then(res => res.json()) .then((data) => { - let output = null; + let output; data.forEach((user) => { console.log(user.productimage); - output += ` + output = `