Can't update document from subcollection on component

Actions & Logic

Hello Community,

I'm having a problem with update document. At first, look this image below:

This is a component, not page. The objective is update a lesson's course specific. I use two local variables to pass doc reference as below. Both serves to be update when user select the options, aulaselecionadaref also is used to pass doc reference on final action, that is used in "Salvar" button.

Finally, the reference that is in aulaselecionadaref is used to locate what lesson will update, like below

The problem is that, when I click on button nothing happen.๐Ÿคทโ€โ™€๏ธ

What your sugestions?

What have you tried so far?

Well basically, I've tried pass the reference like document, document reference in local variables, in parameters too and with a custom action that allow me use doc reference chosen in dropdown.

Observation: The custom action is basically convert string to doc reference.

Did you check FlutterFlow's Documentation for this topic?
Yes
1
3 replies