fix: 🐛 ref loading for patrons/sponsors in about-firefish
This commit is contained in:
parent
5444d4fcc7
commit
6f426ee9e6
@ -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));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user