Hello everyone,
I hope all is well,
What I need:
I need to patch multiple dropdowns after they are being selected by the user in a gallery into a collection by using a button
What does the gallery look like:

Whenever the user presses the edit button, the gallery's display mode will be set to Edit mode and the user will be able to add a new record by pressing the "New" button.
After adding the new row in the gallery and whenever the edit button is pressed by the user, the gallery's display mode will be reseted to View mode and all the records will be patched in the same collection.
This collection is being used on the Items property of the gallery.
My expression:
On the "New button":
ForAll(
Sequence(1),
Collect(ComptCol,
{
competencyId:Blank(),
competencyLevel:Blank()
}
)
)
On the Edit button:
ForAll(
Gallery2.AllItems,
Patch(
ComptCol,
ThisRecord,
{
competencyId: ComboBox4_27.Selected.id,
competencyLevel: ComboBox4_28.Selected.id
}
)
);
My Problem:

Whenever I add a new item and press the edit button the value of the newly added record is not being patched, instead, a blank record is being added.
So how I can fix this issue?
Any help will be highly appreciated,
Thank you