Update frontend
This commit is contained in:
@@ -141,7 +141,6 @@ export default function ProductsPage() {
|
||||
await saveProductImage(`${process.env.NEXT_PUBLIC_API_URL}/products/${savedProduct._id}/image`, file, authToken);
|
||||
}
|
||||
|
||||
// Update state with the saved product
|
||||
setProducts((prevProducts) => {
|
||||
if (editing) {
|
||||
return prevProducts.map((product) =>
|
||||
|
||||
Reference in New Issue
Block a user