fix: 🐛 ref loading for patrons/sponsors in about-firefish

This commit is contained in:
ThatOneCalculator 2023-08-01 21:16:53 -07:00
parent 5444d4fcc7
commit 6f426ee9e6
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -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));