Refactor player handling: replace player arrays with IDs, implement PlayerSelector component
This commit is contained in:
@@ -31,10 +31,6 @@ import { permsRepo } from "@repo/perms.ts";
|
||||
|
||||
export const schemTypes = cached<SchematicType[]>([], () => fetchWithToken(get(tokenStore), "/data/admin/schematicTypes").then((res) => res.json()));
|
||||
|
||||
export const players = cached<Player[]>([], async () => {
|
||||
return get(dataRepo).getPlayers();
|
||||
});
|
||||
|
||||
export const teams = cached<Team[]>([], async () => {
|
||||
return get(dataRepo).getTeams();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user