diff --git a/examples/react-todo-list/src/Store.js b/examples/react-todo-list/src/Store.js index 9ab0c0ed44d..890856a9c3a 100644 --- a/examples/react-todo-list/src/Store.js +++ b/examples/react-todo-list/src/Store.js @@ -73,7 +73,7 @@ export const addTask = async (task_text, list_id) => { export const updateTask = async (task_id, values) => { try { - let { data, error } = await supabase.from('tasks').eq('id', task_id).update(values) + let { data, error } = await supabase.from('tasks').update(values).eq('id', task_id) if (error) { throw new Error(error) }