aboutsummaryrefslogtreecommitdiff
path: root/src/components/Form/Items/RegisterItemForm.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Form/Items/RegisterItemForm.tsx')
-rw-r--r--src/components/Form/Items/RegisterItemForm.tsx9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/components/Form/Items/RegisterItemForm.tsx b/src/components/Form/Items/RegisterItemForm.tsx
index c782df5..886628c 100644
--- a/src/components/Form/Items/RegisterItemForm.tsx
+++ b/src/components/Form/Items/RegisterItemForm.tsx
@@ -47,14 +47,7 @@ const RegisterItemForm: React.FC<props> = (props) => {
// TODO: show confirmation before being invisible
// TODO: Implement override protection
- axios.post(
- `/api/items/register/`
- + `?model=${newItem.Model}`
- + `&desc=${newItem.Description}`
- + `&price=${newItem.UnitPrice}`
- + `&hsn=${newItem.HSN}`
- + `&gst=${newItem.TotalGST}`
- )
+ axios.post("/api/items/register", newItem)
.then((res) => {
console.log(res);
hideSelf();