modify document in Firebase #14347
Unanswered
HanyTaha61
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Code formatting is broken, use triple back ticks (`) to properly format the code. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hi all,
When I try to update a specific document in an array of documents on Firebase using modifyProject() function, it always update the last document, even if I specified the document with the auto-generated ID.
this is the project repo: https://github.com/HanyTaha61/vuetify-project
And here is the code and functions:
*-- I cycle through projects object from the firebase
*-- newTitle, newContent, newDue are bound to the edit fields and I expect them to refer to the selected document. But they refer to the last document only.
this is the document modify function:
(id) in the function always refer to the last document in the collection.
I want it to refer to the selected document.
Beta Was this translation helpful? Give feedback.
All reactions