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:
parent
0ad069cc61
commit
b41ffe61ef
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue