Rank 1: Thread
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);
}
);
};