fix: 🐛 ref loading for patrons/sponsors in about-firefish
This commit is contained in:
parent
5444d4fcc7
commit
6f426ee9e6
1 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue