mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Directly return boolean value instead of returning it from ternary operator
This commit is contained in:
parent
f563fce5a5
commit
fb77e19da7
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ const GenresSectionContainer: FC<GenresSectionContainerProps> = ({
|
|||
centerText: true,
|
||||
cardLayout: false,
|
||||
shape: itemType === BaseItemKind.MusicAlbum ? 'overflowSquare' : 'overflowPortrait',
|
||||
showParentTitle: itemType === BaseItemKind.MusicAlbum ? true : false,
|
||||
showYear: itemType === BaseItemKind.MusicAlbum ? false : true
|
||||
showParentTitle: (itemType === BaseItemKind.MusicAlbum),
|
||||
showYear: !(itemType === BaseItemKind.MusicAlbum)
|
||||
}}
|
||||
/>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue