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) }