Fakultas Ilmu Komputer UI

Commit 1a3f030f authored by Michael Wiryadinata Halim's avatar Michael Wiryadinata Halim
Browse files

Merge branch 'coldfix_sprint_2_1' into 'staging'

[REFACTOR] Fix image

See merge request !39
parents 0eed67ba f4258320
Pipeline #39828 passed with stages
in 6 minutes and 16 seconds
......@@ -19,7 +19,7 @@ const TambahProduk = () => {
formData.append("description", data["description"]);
formData.append("price", data["price"]);
formData.append("stock", data["stock"]);
formData.append("image", data["image"][0]);
if (data["image"].length !== 0) formData.append("image", data["image"][0]);
fetch(url, {
method: "POST",
headers: {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment