mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
fix: switch undefined variable ref from countries to todos (#26743)
* fix: switch variable ref from countries to todos * fix: duplicate const --------- Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
This commit is contained in:
1 parent
4c9c96a159
commit
92b7a33b49
2 files changed
+4
-4
No files matched your search
@@ -47,8 +47,8 @@ export const supabase = createClient(supabaseUrl, supabaseKey);
|
||||
const todos = ref([])
|
||||
|
||||
async function getTodos() {
|
||||
const { data: todos } = await supabase.from('todos').select()
|
||||
countries.value = todos
|
||||
const { data } = await supabase.from('todos').select()
|
||||
todos.value = data
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
@@ -47,8 +47,8 @@ export const supabase = createClient(supabaseUrl, supabaseKey);
|
||||
const todos = ref([])
|
||||
|
||||
async function getTodos() {
|
||||
const { data: todos } = await supabase.from('todos').select()
|
||||
countries.value = todos
|
||||
const { data } = await supabase.from('todos').select()
|
||||
todos.value = data
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in new issue
Block a user