I want to take a display_name from the Firestore database, change it if necessary in a text field, and display the result in the next window.
Interestingly, I am using the command (update document https://docs.flutterflow.io/actions/actions/backend-database/firestore#3.-update-document) - and if I take and use data from the same window from the text field, nothing happens. But if I enter a special value through the update document command, the record is overwritten.
What's wrong, and is it possible to modify and save a record on the fly in the same window in Firestore?
Сoncole error : Uncaught (in promise) FirebaseError: Function updateDoc() called with invalid data. Data must be an object, but it was: undefined