fixed GlossaryModel error

This commit is contained in:
Username1548
2024-12-02 16:35:54 +07:00
parent 6ed0d3547c
commit f9291031b0

View File

@@ -41,6 +41,14 @@ class _AddProductModalState extends State<AddProductModal> {
id: widget.portion!.id,
name: widget.portion!.productName,
grInPortion: widget.portion!.portion == 'gr' ? 0 : 1,
energyOn100Gr: 0,
proteinsOn100Gr: 0,
fatsOn100Gr: 0,
carbohydratesOn100Gr: 0,
energyOnPortion: 0,
proteinsOnPortion: 0,
fatsOnPortion: 0,
carbohydratesOnPortion: 0,
);
}
}