Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
816b707a
Unverified
Commit
816b707a
authored
Feb 28, 2024
by
crazywoola
Committed by
GitHub
Feb 28, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: explore apps is not shown (#2604)
parent
c9257ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
index.tsx
web/app/components/explore/app-list/index.tsx
+2
-3
No files found.
web/app/components/explore/app-list/index.tsx
View file @
816b707a
...
@@ -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"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment