Fix Composing
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
const supabase = useSupabaseClient()
|
||||
|
||||
const props = defineProps({
|
||||
item: {
|
||||
type: Object,
|
||||
@@ -15,8 +13,8 @@ const products = ref([])
|
||||
const units = ref([])
|
||||
|
||||
const setup = async () => {
|
||||
products.value = await useSupabaseSelect("products")
|
||||
units.value = (await supabase.from("units").select()).data
|
||||
products.value = await useEntities("products").select()
|
||||
units.value = await useEntities("units").selectSpecial()
|
||||
}
|
||||
|
||||
setup()
|
||||
|
||||
@@ -15,8 +15,8 @@ const hourrates = ref([])
|
||||
const units = ref([])
|
||||
|
||||
const setup = async () => {
|
||||
hourrates.value = await useSupabaseSelect("hourrates")
|
||||
units.value = (await supabase.from("units").select()).data
|
||||
hourrates.value = await useEntities("hourrates").select()
|
||||
units.value = await useEntities("units").selectSpecial()
|
||||
}
|
||||
|
||||
setup()
|
||||
|
||||
Reference in New Issue
Block a user