From 0d9d952d2cbf3381f5edaaf8bfe45391ed4986b7 Mon Sep 17 00:00:00 2001 From: dakkar Date: Mon, 9 Dec 2024 15:40:54 +0000 Subject: [PATCH] user profile: only default to "pinned notes" if they exist it's sensible to show the pinned notes first *if they exist* if there's nothing pinned, we're just showing an empty list let's show the "notes" tab in that case --- packages/frontend/src/pages/user/home.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue index f2621f4ad0..7bb8c3fd3d 100644 --- a/packages/frontend/src/pages/user/home.vue +++ b/packages/frontend/src/pages/user/home.vue @@ -260,7 +260,7 @@ const memoDraft = ref(props.user.memo); const isEditingMemo = ref(false); const moderationNote = ref(props.user.moderationNote); const editModerationNote = ref(false); -const noteview = ref('pinned'); +const noteview = ref(props.user.pinnedNotes.length ? 'pinned' : null); const listenbrainzdata = ref(false); if (props.user.listenbrainz) {