diff --git a/web/app/components/plugins/marketplace/context.tsx b/web/app/components/plugins/marketplace/context.tsx index e484f1e275..cba3835513 100644 --- a/web/app/components/plugins/marketplace/context.tsx +++ b/web/app/components/plugins/marketplace/context.tsx @@ -239,9 +239,11 @@ export const MarketplaceContextProvider = ({ activePluginTypeRef.current = type setPage(1) pageRef.current = 1 + }, []) + useEffect(() => { handleQuery() - }, [handleQuery]) + }, [activePluginType, handleQuery]) const handleSortChange = useCallback((sort: PluginsSort) => { setSort(sort)