Help with inconsistent additions to DB

Hello all,

I have an issue where the same action (modify a thing) gives inconsistent results (i.e. pressing the same button will sometimes save some elements, sometimes none, something all the elements).

Link to app design view

The app that has a data structure as follows:
(Data Type): (Fields)
Food: Name, Meal Type (based on list)
Meals: Week, Day, Meal (based on list), [Food] (list of food)

In the interface, you can choose to set a Food for each food type (Protein, Carb, Veggie), for each meal (Breakfast, Lunch, Dinner) for each day of a week.

When I press the button that triggers the workflow that will eventually save the data (Plan Meal button within the Set Meal pop-up) sometimes all the Food items are added to the meal, sometimes none, sometimes only some.

I’m not sure why that is and it’s inconsistent…sometimes the UI will even show me the foods, but if I view the data in the app it’s actually not there (so refreshing the screen actually wipes out what was shown on the UI)

I’m using the Orchestra plugin (https://bubble.io/plugin/orchestra-repeating-group-addon-1581095540181x938333534159634400) to make sure the Foods can be added to the Meal, since the repeating group that has the Food dropdown is actually of type MealType.

Any help would be greatly appreciated!

Thank you!

This topic was automatically closed after 70 days. New replies are no longer allowed.