aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/cupboard/cupboard.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ufund-ui/src/app/components/cupboard/cupboard.component.ts')
-rw-r--r--ufund-ui/src/app/components/cupboard/cupboard.component.ts3
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) => {