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);
},
enabled: !!api && !!userId && !!isArtistsEnabled && !!isPeopleEnabled && !!isVideosEnabled && !!isLiveTvEnabled && !!isProgramsEnabled
enabled: (
!!api
&& !!userId
&& !!isArtistsEnabled
&& !!isPeopleEnabled
&& !!isVideosEnabled
&& !!isLiveTvEnabled
&& !!isProgramsEnabled
)
});
};