浏览代码

Fix: explore apps is not shown (#2604)

tags/0.5.7
crazywoola 1年前
父节点
当前提交
816b707a16
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      web/app/components/explore/app-list/index.tsx

+ 2
- 3
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 (
<div className="flex h-full items-center">
<Loading type="area" />

正在加载...
取消
保存