Issue with repeat group item display

Displayed repated group items based on previous question selected choise count wont change when choice is unselected from previous question.

Example screenshoot below. If I choose Oinon and Potato first and unselect Potato, repate group still displays two repeat items.

Right! This is kind of a know "issue" with how repeat groups are rendered.

when you generate an iteration of the repeat, it has already been drawn-temporary placeholders for the data have been created.

to remove it, you would need to add a display condition. check this page out for an idea Advanced Functions for Repeat Groups - CommCare Public - Global Site

you can also make that condition check if the current position is greater than the count of number of elements and return false when this condition is met - hiding the repeat iteration itself.