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

fix ternary statement

This commit is contained in:
Aiden Vigue 2021-02-18 20:38:37 +00:00
parent 0ad069cc61
commit b41ffe61ef

View file

@ -27,7 +27,7 @@ function getBackdropItemIds(apiClient, userId, types, parentId) {
ImageTypes: 'Backdrop', ImageTypes: 'Backdrop',
ParentId: parentId, ParentId: parentId,
EnableTotalRecordCount: false, EnableTotalRecordCount: false,
MaxOfficialRating: parentId === '' ? 'TV-MA' : '' MaxOfficialRating: parentId ? '' : 'TV-MA'
}; };
return apiClient.getItems(apiClient.getCurrentUserId(), options).then(function (result) { return apiClient.getItems(apiClient.getCurrentUserId(), options).then(function (result) {
const images = result.Items.map(function (i) { const images = result.Items.map(function (i) {