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

@@ -28,9 +28,9 @@ const resourceToAdd = ref(dataStore.activeProfile.id)
const setupPage = async () => {
if(mode.value === "show"){
itemInfo.value = await useSupabaseSelectSingle("events",useRoute().params.id,"*, project(id,name)")
} else if(mode.value === "edit") {
itemInfo.value = await useSupabaseSelectSingle("events",useRoute().params.id,"*")
itemInfo.value = await useSupabaseSelectSingle("events",route.params.id,"*, project(id,name)")
} else if(mode.value === "edit" && route.params.id) {
itemInfo.value = await useSupabaseSelectSingle("events",route.params.id,"*")
}