From 816b707a16e5b205336a5c1eb3eea1c76e907535 Mon Sep 17 00:00:00 2001 From: crazywoola <100913391+crazywoola@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:43:42 +0800 Subject: [PATCH] Fix: explore apps is not shown (#2604) --- web/app/components/explore/app-list/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/app/components/explore/app-list/index.tsx b/web/app/components/explore/app-list/index.tsx index d3e90e6212..9031bb6299 100644 --- a/web/app/components/explore/app-list/index.tsx +++ b/web/app/components/explore/app-list/index.tsx @@ -26,13 +26,12 @@ const Apps: FC = () => { const { isCurrentWorkspaceManager } = useAppContext() const router = useRouter() const { hasEditPermission } = useContext(ExploreContext) - const allCategoriesEn = t('explore.apps.allCategories', { lng: 'en' }) + const allCategoriesEn = t('explore.apps.allCategories') const [currCategory, setCurrCategory] = useTabSearchParams({ defaultTab: allCategoriesEn, }) const { data: { categories, allList }, - isLoading, } = useSWR( ['/explore/apps'], () => @@ -90,7 +89,7 @@ const Apps: FC = () => { } } - if (!isLoading) { + if (!categories) { return (