From 72186715c8e633c1931aeafeb7a758d673c96c48 Mon Sep 17 00:00:00 2001 From: Ant Wilson Date: Mon, 23 Nov 2020 12:39:24 +0800 Subject: [PATCH] fix: fixing todo app update statement to new supabase interface --- examples/react-todo-list/src/Store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }