fix: enhance plugin fetching logic in ListWrapper component

This commit is contained in:
WTW0313
2025-09-02 14:08:32 +08:00
parent 067b0d07c4
commit 373f354a15

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