refactor: cleanup item pages code and make them more perfomant
This commit is contained in:
10 files changed
+521
-1370
No files matched your search
@@ -359,11 +359,10 @@ const PlayButton = ({
|
||||
sx={sx}
|
||||
size={size}
|
||||
disabled={
|
||||
currentEpisode.isPending ||
|
||||
(itemType === BaseItemKind.Series &&
|
||||
(!currentEpisode.data ||
|
||||
!currentEpisode.data.Items ||
|
||||
currentEpisode.data.Items.length === 0))
|
||||
itemType === BaseItemKind.Series &&
|
||||
(!currentEpisode.data ||
|
||||
!currentEpisode.data.Items ||
|
||||
currentEpisode.data.Items.length === 0)
|
||||
}
|
||||
{...buttonProps}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user