{(provided, snapshot) => (
{groupSlotsByExercise(props.day.slots).map((group) =>
{group.slots.map(({ slot, originalIndex }, indexInGroup) =>
{
addSlotEntryQuery.mutate(new SlotEntry({
slotId: slot.id!,
exerciseId: exercise.id!,
type: 'normal',
order: slot.entries.length + 1,
weightUnitId: userProfileQuery.data!.useMetric ? WEIGHT_UNIT_KG : WEIGHT_UNIT_LB,
}));
setShowAutocompleterForSlot(null);
}}
/>
)}
)}
{provided.placeholder}
)}