feat: refactor character loading to use let for mutable characters and improve filtering logic
All checks were successful
Build Docker Image / build (push) Successful in 1m37s

This commit is contained in:
2026-03-04 12:45:55 +01:00
parent 7c9aef1aee
commit e6bfc1e413

View File

@@ -4,7 +4,13 @@ import { getAllCharacters } from '$lib/server/daily-character';
import { like } from 'drizzle-orm'; import { like } from 'drizzle-orm';
export async function load() { export async function load() {
const characters = await getAllCharacters(); let characters = await getAllCharacters();
// Filter out characters that have no height data
characters = characters.filter(char => char.height !== null);
// Filter out characters that have no status data
characters = characters.filter(char => char.status !== null);
// Load column visibility config // Load column visibility config
const columnConfig = await db const columnConfig = await db