From 31acc8caadeee1e4993991733e0552d37d759064 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Thu, 8 Jun 2023 12:51:05 -0700 Subject: [PATCH] patron async computed --- packages/client/src/pages/user/home.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/user/home.vue b/packages/client/src/pages/user/home.vue index 705a93680..d9d0a7b81 100644 --- a/packages/client/src/pages/user/home.vue +++ b/packages/client/src/pages/user/home.vue @@ -367,8 +367,6 @@ const props = withDefaults( const router = useRouter(); -const patrons = await os.api("patrons"); - let parallaxAnimationId = $ref(null); let narrow = $ref(null); let rootEl = $ref(null); @@ -423,6 +421,8 @@ const timeForThem = $computed(() => { return ""; }); +const patrons = $computed(async () => await os.api("patrons")); + function menu(ev) { os.popupMenu( getUserMenu(props.user, router),