This commit is contained in:
2024-07-12 22:20:45 +02:00
parent d01869fca8
commit fc0caf2d00
4 changed files with 10 additions and 12 deletions

View File

@@ -1376,14 +1376,15 @@ export const useDataStore = defineStore('data', () => {
events.value.forEach(event => {
console.log(event)
event.resources.forEach(resource => {
console.log(resource)
let eventColor = ownTenant.value.calendarConfig.eventTypes.find(type => type.label === event.type).color
let title = ""
if(event.title) {
title = event.title
} else if(event.project) {
} /*else if(event.project) {
projects.value.find(i => i.id === event.project) ? projects.value.find(i => i.id === event.project).name : ""
}
}*/
@@ -1451,7 +1452,7 @@ export const useDataStore = defineStore('data', () => {
//Get Item By Id
const getProductById = computed(() => async (itemId) => {
const getProductById = computed(() => (itemId) => {
return products.value.find(item => item.id === itemId)
})