diff --git a/components/EntityEdit.vue b/components/EntityEdit.vue index 0e1469c..d9c87f7 100644 --- a/components/EntityEdit.vue +++ b/components/EntityEdit.vue @@ -48,7 +48,6 @@ defineShortcuts({ }, }) -const supabase = useSupabaseClient() const router = useRouter() const route = useRoute() const dataStore = useDataStore() @@ -150,9 +149,9 @@ const loadOptions = async () => { for await(const option of optionsToLoad) { if(option.option === "countrys") { - loadedOptions.value[option.option] = (await supabase.from("countrys").select()).data + loadedOptions.value[option.option] = useEntities("countrys").selectSpecial() } else if(option.option === "units") { - loadedOptions.value[option.option] = (await supabase.from("units").select()).data + loadedOptions.value[option.option] = useEntities("units").selectSpecial() } else { loadedOptions.value[option.option] = (await useEntities(option.option).select())