From 373f354a157c0dad8c94f94820b97792261f9e44 Mon Sep 17 00:00:00 2001 From: WTW0313 Date: Tue, 2 Sep 2025 14:08:32 +0800 Subject: [PATCH] fix: enhance plugin fetching logic in ListWrapper component --- web/app/components/plugins/marketplace/list/list-wrapper.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/plugins/marketplace/list/list-wrapper.tsx b/web/app/components/plugins/marketplace/list/list-wrapper.tsx index fa6521bcfd..62c0734b48 100644 --- a/web/app/components/plugins/marketplace/list/list-wrapper.tsx +++ b/web/app/components/plugins/marketplace/list/list-wrapper.tsx @@ -32,7 +32,8 @@ const ListWrapper = ({ const handleMoreClick = useMarketplaceContext(v => v.handleMoreClick) useEffect(() => { - if (!marketplaceCollectionsFromClient?.length && isSuccessCollections) + // Fetch plugins if there are no collections available + if ((!marketplaceCollectionsFromClient?.length && isSuccessCollections) || !marketplaceCollections.length) handleQueryPlugins() }, [handleQueryPlugins, marketplaceCollections, marketplaceCollectionsFromClient, isSuccessCollections])