I am getting this error every time I make changes to the text in the input field using the modal component.
Here is my code using the Update document databases API.
const updateTodo = (database_id, collection_id, document_id) =>
databases.updateDocument(database_id, collection_id, document_id);
const handleUpdateTodo = () => {
updateTodo(
props.item.$databaseId,
props.item.$collectionId,
props.item.$id
).then(
function (response) {
console.log(response);
},
function (error) {
console.log("Error updating the document", error.message);
}
);
};
It changes the text, but on refresh, the data doesn't persist both on the browser and in the database.
yoiu're not passing the data to update...
How should I do it?
<form
class="form u-width-full-line u-max-width-500 u-flex u-main-center"
@submit.prevent="handleUpdateTodo">
You're missing the 4th argument to updateDocument()
Hmm.
This is the code. https://gist.github.com/Terieyenike/bfdbfe67a48573b4f0de06558f5033f8
Still, you're missing the 4th argument to updateDocument()
Ok. Where exactly can I fix it on? It is only this part that is still disturbing me.
Line 82...
Got it. Thank you so much.
Recommended threads
- Server Down
Appwrite services are down. When will they start working again?
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...
- Looking for a Partner