mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix lint errors
This commit is contained in:
parent
7d9acf30b6
commit
4730a30c3d
29 changed files with 53 additions and 23 deletions
|
@ -323,7 +323,7 @@ function shouldShowMediaTitle(
|
|||
}
|
||||
|
||||
function shouldShowExtraType(itemExtraType: NullableString) {
|
||||
return itemExtraType && itemExtraType !== 'Unknown';
|
||||
return !!(itemExtraType && itemExtraType !== 'Unknown');
|
||||
}
|
||||
|
||||
function shouldShowSeriesYearOrYear(
|
||||
|
@ -351,7 +351,7 @@ function shouldShowPersonRoleOrType(
|
|||
showPersonRoleOrType: boolean | undefined,
|
||||
item: ItemDto
|
||||
) {
|
||||
return showPersonRoleOrType && (item as BaseItemPerson).Role;
|
||||
return !!(showPersonRoleOrType && (item as BaseItemPerson).Role);
|
||||
}
|
||||
|
||||
function shouldShowParentTitle(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue