Fixed Edit in Modal

This commit is contained in:
2025-10-02 19:25:59 +02:00
parent f05c222c42
commit c729c595ee

View File

@@ -38,7 +38,7 @@ const setupPage = async () => {
item.value = await useEntities(props.type).selectSingle(props.id, dataType.supabaseSelectWithInformation || "*")
} else if(props.mode === "edit") {
//Load Data for Edit
const data = JSON.stringify((await supabase.from(props.type).select().eq("id", props.id).single()).data)
const data = JSON.stringify(await useEntities(props.type).selectSingle(props.id)/*(await supabase.from(props.type).select().eq("id", props.id).single()).data*/)
//await useSupabaseSelectSingle(type, route.params.id)
item.value = data