From e02cd9be53aab2ab94778db5dbe929d51caabfe7 Mon Sep 17 00:00:00 2001 From: Trenton Zimmer <66042448+trmazi@users.noreply.github.com> Date: Sat, 12 Sep 2026 15:20:32 -0400 Subject: [PATCH] fix latest video to ref --- src/views/Profile/VideoView.vue | 36 ++++++++++----------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/src/views/Profile/VideoView.vue b/src/views/Profile/VideoView.vue index ab82b83d..bbeb6f8e 100644 --- a/src/views/Profile/VideoView.vue +++ b/src/views/Profile/VideoView.vue @@ -17,23 +17,8 @@ import BaseDivider from "@/components/BaseDivider.vue"; const videoData = ref([]); const loading = ref(false); - -/* - * Music data is stored by game/version: - * - * { - * iidx: { - * 30: { - * 123: { id: 123, name: "...", artist: "..." }, - * 456: { id: 456, name: "...", artist: "..." }, - * }, - * 31: { - * ... - * } - * } - * } - */ const musicData = ref({}); +const newestVideo = ref(null); const headers = [ { @@ -139,6 +124,7 @@ async function loadVideos() { artist: song?.artist || "Unknown Artist", }; }); + newestVideo.value = videoData.value[0]; } catch (error) { console.error("Failed to fetch video data:", error); } finally { @@ -196,15 +182,15 @@ function openInNewTab(url) { -