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

Organize long enabled expression

This commit is contained in:
viown 2025-03-24 20:32:16 +03:00
parent cdd330a01f
commit 1a33b510ce

View file

@ -85,6 +85,14 @@ export const useSearchItems = (
return sortSections(sections); return sortSections(sections);
}, },
enabled: !!api && !!userId && !!isArtistsEnabled && !!isPeopleEnabled && !!isVideosEnabled && !!isLiveTvEnabled && !!isProgramsEnabled enabled: (
!!api
&& !!userId
&& !!isArtistsEnabled
&& !!isPeopleEnabled
&& !!isVideosEnabled
&& !!isLiveTvEnabled
&& !!isProgramsEnabled
)
}); });
}; };