Unverified Commit 816b707a authored by crazywoola's avatar crazywoola Committed by GitHub

Fix: explore apps is not shown (#2604)

parent c9257ab4
...@@ -26,13 +26,12 @@ const Apps: FC = () => { ...@@ -26,13 +26,12 @@ const Apps: FC = () => {
const { isCurrentWorkspaceManager } = useAppContext() const { isCurrentWorkspaceManager } = useAppContext()
const router = useRouter() const router = useRouter()
const { hasEditPermission } = useContext(ExploreContext) const { hasEditPermission } = useContext(ExploreContext)
const allCategoriesEn = t('explore.apps.allCategories', { lng: 'en' }) const allCategoriesEn = t('explore.apps.allCategories')
const [currCategory, setCurrCategory] = useTabSearchParams({ const [currCategory, setCurrCategory] = useTabSearchParams({
defaultTab: allCategoriesEn, defaultTab: allCategoriesEn,
}) })
const { const {
data: { categories, allList }, data: { categories, allList },
isLoading,
} = useSWR( } = useSWR(
['/explore/apps'], ['/explore/apps'],
() => () =>
...@@ -90,7 +89,7 @@ const Apps: FC = () => { ...@@ -90,7 +89,7 @@ const Apps: FC = () => {
} }
} }
if (!isLoading) { if (!categories) {
return ( return (
<div className="flex h-full items-center"> <div className="flex h-full items-center">
<Loading type="area" /> <Loading type="area" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment