From 1a33b510ce2355c6e1117fc170f2ea66ab2c14f6 Mon Sep 17 00:00:00 2001 From: viown <48097677+viown@users.noreply.github.com> Date: Mon, 24 Mar 2025 20:32:16 +0300 Subject: [PATCH] Organize long enabled expression --- src/apps/stable/features/search/api/useSearchItems.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/apps/stable/features/search/api/useSearchItems.ts b/src/apps/stable/features/search/api/useSearchItems.ts index 0f7b44ad18..e16bdd67f7 100644 --- a/src/apps/stable/features/search/api/useSearchItems.ts +++ b/src/apps/stable/features/search/api/useSearchItems.ts @@ -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 + ) }); };