diff options
author | benal01 <bja4245@rit.edu> | 2025-03-17 21:07:07 -0400 |
---|---|---|
committer | benal01 <bja4245@rit.edu> | 2025-03-17 21:07:07 -0400 |
commit | 65dc25331090539998232b4a6dad001930e297fe (patch) | |
tree | 483171d7ea106edf906c583d0ebef4076a7640e3 | |
parent | 8951d00eddb147e5301454f250e503ad19aa47d3 (diff) | |
download | JellySolutions-65dc25331090539998232b4a6dad001930e297fe.tar.gz JellySolutions-65dc25331090539998232b4a6dad001930e297fe.tar.bz2 JellySolutions-65dc25331090539998232b4a6dad001930e297fe.zip |
change id input to always use zero, the system will assign the id
-rw-r--r-- | ufund-ui/src/app/components/cupboard/cupboard.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ufund-ui/src/app/components/cupboard/cupboard.component.ts b/ufund-ui/src/app/components/cupboard/cupboard.component.ts index c1bf66c..aa88473 100644 --- a/ufund-ui/src/app/components/cupboard/cupboard.component.ts +++ b/ufund-ui/src/app/components/cupboard/cupboard.component.ts @@ -112,12 +112,13 @@ needs: any; submit(form: any) { const need: Need = { name: form.name, - id: form.id, + id: 0, maxGoal: form.maxGoal, type: GoalType[form.type as keyof typeof GoalType], filterAttributes: [], current: 0 }; + console.log("form submitted. creating need: ", need); this.cupboardService.createNeed(need).subscribe( (result) => { |