From 05ed75d05d02a2ee3d1bc76356d51beb84aab0e4 Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Fri, 20 Jun 2025 04:52:39 +0000 Subject: [PATCH] Maybe actually fix the cookbook jank this time --- frontend/components/Layout/DefaultLayout.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/components/Layout/DefaultLayout.vue b/frontend/components/Layout/DefaultLayout.vue index 883afeb05..0a5052e66 100644 --- a/frontend/components/Layout/DefaultLayout.vue +++ b/frontend/components/Layout/DefaultLayout.vue @@ -135,12 +135,7 @@ export default defineNuxtComponent({ const isAdmin = computed(() => $auth.user.value?.admin); const route = useRoute(); const groupSlug = computed(() => route.params.groupSlug as string || $auth.user.value?.groupSlug || ""); - - const loggedInCookbooks = useCookbooks(); - const publicCookbooks = usePublicCookbooks(groupSlug.value || ""); - const cookbooks = computed(() => - isOwnGroup.value ? loggedInCookbooks.cookbooks.value : publicCookbooks.cookbooks.value, - ); + const { cookbooks } = isOwnGroup.value ? useCookbooks() : usePublicCookbooks(groupSlug.value || ""); const cookbookPreferences = useCookbookPreferences(); const { store: households } = isOwnGroup.value ? useHouseholdStore() : usePublicHouseholdStore(groupSlug.value || "");