UlricusR / iOS-EasyFPU

An app to easily calculate Fat-Protein-Units
GNU General Public License v3.0
1 stars 3 forks source link

Composed food item storage, export and import issue #103

Closed UlricusR closed 1 year ago

UlricusR commented 1 year ago

When exporting as JSON, the app crashes due to a endless loop in the FoodItemViewModel.encode function, line 365:

composedFoodItemVM.fill(from: cdComposedFoodItem, syncStrategy: .createMissingFoodItems)

Reason: The .createMissingFoodItems sync strategy creates new food items, which are already there, and this seems to run into some kind of endless loop.

Other issues found during investigation: