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