Function
Updates an existing product in the API.
This function sends a PUT request to the API to update an existing product with the provided product details. If the request is successful, it returns the response. In case of an error, it catches the error and logs it.
updateProduct
The updated details of the product.
The response from the API, or undefined if an error occurs.
If there is an error during the request, it is caught and logged.
Updates an existing product in the API.
This function sends a PUT request to the API to update an existing product with the provided product details. If the request is successful, it returns the response. In case of an error, it catches the error and logs it.
updateProduct