Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix fetch apps (#9453)

horochxbd27b4c1620e
diff --git a/web/app/(commonLayout)/apps/Apps.tsx b/web/app/(commonLayout)/apps/Apps.tsx
index 132096c6b45..accf6c67f22 100644
--- a/web/app/(commonLayout)/apps/Apps.tsx
+++ b/web/app/(commonLayout)/apps/Apps.tsx
@@ -87,15 +87,15 @@ const Apps = () => {
localStorage.removeItem(NEED_REFRESH_APP_LIST_KEY)
mutate()
}
- }, [])
+ }, [mutate, t])
useEffect(() => {
if (isCurrentWorkspaceDatasetOperator)
return router.replace('/datasets')
- }, [isCurrentWorkspaceDatasetOperator])
+ }, [router, isCurrentWorkspaceDatasetOperator])
- const hasMore = data?.at(-1)?.has_more ?? true
useEffect(() => {
+ const hasMore = data?.at(-1)?.has_more ?? true
let observer: IntersectionObserver | undefined
if (anchorRef.current) {
observer = new IntersectionObserver((entries) => {
@@ -105,7 +105,7 @@ const Apps = () => {
observer.observe(anchorRef.current)
}
return () => observer?.disconnect()
- }, [isLoading, setSize, anchorRef, mutate, hasMore])
+ }, [isLoading, setSize, anchorRef, mutate, data])
const { run: handleSearch } = useDebounceFn(() => {
setSearchKeywords(keywords)