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.

keep add and remove the same (#25277)

Asuka Minato27bf244b3beb
diff --git a/web/app/components/plugins/marketplace/plugin-type-switch.tsx b/web/app/components/plugins/marketplace/plugin-type-switch.tsx
index 9c071c5dc72..d852266affe 100644
--- a/web/app/components/plugins/marketplace/plugin-type-switch.tsx
+++ b/web/app/components/plugins/marketplace/plugin-type-switch.tsx
@@ -82,9 +82,7 @@ const PluginTypeSwitch = ({
}, [showSearchParams, handleActivePluginTypeChange])
useEffect(() => {
- window.addEventListener('popstate', () => {
- handlePopState()
- })
+ window.addEventListener('popstate', handlePopState)
return () => {
window.removeEventListener('popstate', handlePopState)
}