From 27bf244b3beb236dc8fdf1d8c337ad084e29d6e2 Mon Sep 17 00:00:00 2001 From: Asuka Minato Date: Mon, 8 Sep 2025 10:42:39 +0900 Subject: [PATCH] keep add and remove the same (#25277) --- web/app/components/plugins/marketplace/plugin-type-switch.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/app/components/plugins/marketplace/plugin-type-switch.tsx b/web/app/components/plugins/marketplace/plugin-type-switch.tsx index 9c071c5dc..d852266af 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) }