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 * as os from "@/os";
import { definePageMetadata } from "@/scripts/page-metadata"; import { definePageMetadata } from "@/scripts/page-metadata";
let patrons = []; let patrons = $ref([]);
let sponsors = []; let sponsors = $ref([]);
const patronsResp = await os.api("patrons", { forceUpdate: true }); const patronsResp = await os.api("patrons", { forceUpdate: true });
patrons = patronsResp.patrons; patrons.values = patronsResp.patrons;
sponsors = patronsResp.sponsors; sponsors.values = patronsResp.sponsors;
patrons = patrons.filter((patron) => !sponsors.includes(patron)); patrons = patrons.filter((patron) => !sponsors.includes(patron));