Changes
This commit is contained in:
@@ -1456,11 +1456,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
|
||||
//Get Item By Id
|
||||
const getProductById = computed(() => async (itemId) => {
|
||||
|
||||
return await useSupabaseSelectSingle("products",itemId, "*")
|
||||
|
||||
|
||||
//return products.value.find(item => item.id === itemId)
|
||||
return products.value.find(item => item.id === itemId)
|
||||
})
|
||||
|
||||
const getServiceById = computed(() => (itemId) => {
|
||||
|
||||
Reference in New Issue
Block a user