diff --git a/src/components/FolderView/SongList.vue b/src/components/FolderView/SongList.vue
index a6d48c8..c7b2d51 100644
--- a/src/components/FolderView/SongList.vue
+++ b/src/components/FolderView/SongList.vue
@@ -22,7 +22,7 @@
No tracks here
-
@@ -49,7 +49,7 @@ const props = defineProps<{
playlistid?: string;
on_album_page?: boolean;
disc?: string | number;
- copyright?: () => string;
+ copyright?: (() => string) | null;
}>();
const route = useRoute();
diff --git a/src/composables/perks.ts b/src/composables/perks.ts
index 8d32c97..53d9cbc 100644
--- a/src/composables/perks.ts
+++ b/src/composables/perks.ts
@@ -55,6 +55,10 @@ function isSameRoute(to: r, from: r) {
* @param long Whether to provide the time in the long format
*/
function formatSeconds(seconds: number, long?: boolean) {
+ if (seconds == undefined) {
+ return "00:00";
+ }
+
const date = new Date(seconds * 1000);
const hh = date.getUTCHours();
diff --git a/src/stores/queue.ts b/src/stores/queue.ts
index 7ca7ffc..a0591fc 100644
--- a/src/stores/queue.ts
+++ b/src/stores/queue.ts
@@ -43,7 +43,7 @@ const defaultTrack =