This commit is contained in:
2024-07-02 18:38:11 +02:00
parent d2da96eaa3
commit d327277bac
14 changed files with 288 additions and 20 deletions

View File

@@ -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) => {