mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 16:38:58 +08:00
Fix: explore apps is not shown (#2604)
This commit is contained in:
parent
c9257ab4bf
commit
816b707a16
@ -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" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user