songs fix zod number stuff
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
import { db as clientDb } from "$lib/db/client-db";
|
||||
import { addAllToQueue, playAllNext } from "$lib/player/player.svelte";
|
||||
import { trackFromSongRow } from "$lib/player/types";
|
||||
import { SongCategoryMap, SongTypeReverseMap } from "$lib/utils/amq";
|
||||
import type { PageData } from "./$types";
|
||||
import { SearchParamsSchema } from "./schema";
|
||||
|
||||
@@ -34,11 +33,6 @@
|
||||
return r.artistName ?? r.groupName ?? null;
|
||||
}
|
||||
|
||||
// Helper to map song type number back to string for UI display
|
||||
function getSongTypeLabel(type: number): string {
|
||||
return SongTypeReverseMap[type] || `Type ${type}`;
|
||||
}
|
||||
|
||||
const tracksFromResults = $derived.by(() =>
|
||||
data.songRows
|
||||
.map((r) =>
|
||||
|
||||
Reference in New Issue
Block a user