Compare commits

...

2 Commits

Author SHA1 Message Date
WTW0313
f0a33866fb Merge branch 'main' into fix/empty-plugin-list 2025-09-11 16:50:31 +08:00
WTW0313
373f354a15 fix: enhance plugin fetching logic in ListWrapper component 2025-09-02 14:08:32 +08:00

View File

@@ -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])