From 65dc25331090539998232b4a6dad001930e297fe Mon Sep 17 00:00:00 2001 From: benal01 Date: Mon, 17 Mar 2025 21:07:07 -0400 Subject: change id input to always use zero, the system will assign the id --- ufund-ui/src/app/components/cupboard/cupboard.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) => { -- cgit v1.2.3