From c729c595ee8b489ad9dd4b260cc20390ca09581f Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Thu, 2 Oct 2025 19:25:59 +0200 Subject: [PATCH] Fixed Edit in Modal --- components/StandardEntityModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/StandardEntityModal.vue b/components/StandardEntityModal.vue index 9b4bc83..98850ac 100644 --- a/components/StandardEntityModal.vue +++ b/components/StandardEntityModal.vue @@ -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