Supabase Removals Frontend
This commit is contained in:
@@ -7,11 +7,9 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
|
||||
const supabase = useSupabaseClient()
|
||||
|
||||
|
||||
let inventoryitemgroups = await Promise.all(props.row.inventoryitemgroups.map(async (i) => {
|
||||
return (await supabase.from("inventoryitemgroups").select("id,name").eq("id",i).single()).data.name
|
||||
const group = await useEntities("inventoryitemgroups").selectSingle(i)
|
||||
return group?.name
|
||||
}))
|
||||
|
||||
</script>
|
||||
|
||||
@@ -7,11 +7,9 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
|
||||
const supabase = useSupabaseClient()
|
||||
|
||||
|
||||
let inventoryitems = await Promise.all(props.row.inventoryitems.map(async (i) => {
|
||||
return (await supabase.from("inventoryitems").select("id,name").eq("id",i).single()).data.name
|
||||
const item = await useEntities("inventoryitems").selectSingle(i)
|
||||
return item?.name
|
||||
}))
|
||||
|
||||
</script>
|
||||
|
||||
@@ -7,11 +7,9 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
|
||||
const supabase = useSupabaseClient()
|
||||
|
||||
|
||||
let vehicles = await Promise.all(props.row.vehicles.map(async (i) => {
|
||||
return (await supabase.from("vehicles").select("id,licensePlate").eq("id",i).single()).data.licensePlate
|
||||
const vehicle = await useEntities("vehicles").selectSingle(i)
|
||||
return vehicle?.licensePlate
|
||||
}))
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user