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:
Dan RylandandCharis authored and GitHub committed 2024-05-31 16:24:17 +00:00
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(() => {