From 6f426ee9e611e33576ad8aee65b6c72cfc99de01 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 1 Aug 2023 21:16:53 -0700 Subject: [PATCH] fix: :bug: ref loading for patrons/sponsors in about-firefish --- packages/client/src/pages/about-firefish.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client/src/pages/about-firefish.vue b/packages/client/src/pages/about-firefish.vue index 3d413bdb5d..845f7b1d80 100644 --- a/packages/client/src/pages/about-firefish.vue +++ b/packages/client/src/pages/about-firefish.vue @@ -213,11 +213,11 @@ import { defaultStore } from "@/store"; import * as os from "@/os"; import { definePageMetadata } from "@/scripts/page-metadata"; -let patrons = []; -let sponsors = []; +let patrons = $ref([]); +let sponsors = $ref([]); const patronsResp = await os.api("patrons", { forceUpdate: true }); -patrons = patronsResp.patrons; -sponsors = patronsResp.sponsors; +patrons.values = patronsResp.patrons; +sponsors.values = patronsResp.sponsors; patrons = patrons.filter((patron) => !sponsors.includes(patron));