1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #5408 from thornbill/empty-playlist-tab

Fix empty playlists tab in music libraries
This commit is contained in:
Bill Thornton 2024-04-23 02:50:11 -04:00 committed by GitHub
commit 811fef991a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -79,7 +79,10 @@ const Music: FC = () => {
<PageTabContent
key={`${currentTab.viewType} - ${libraryId}`}
currentTab={currentTab}
parentId={libraryId}
parentId={
// Playlists exist outside of the scope of the library
currentTab.viewType === LibraryTab.Playlists ? undefined : libraryId
}
/>
</Page>
);

View file

@ -20,7 +20,6 @@ export default function (view, params, tabContent) {
},
view: userSettings.getSavedView(key) || 'Poster'
};
pageData.query.ParentId = params.topParentId;
userSettings.loadQuerySettings(key, pageData.query);
}