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