Skip to content

Commit 422a34e

Browse files
committed
fix: plugins in recommendation cannot be installed
1 parent 02a1036 commit 422a34e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,6 @@ function MarketPageContent({
297297
const handleInstallPlugin = useCallback(
298298
async (author: string, pluginName: string) => {
299299
try {
300-
// Find the full plugin object from the list
301-
const pluginVO = plugins.find(
302-
(p) => p.author === author && p.pluginName === pluginName,
303-
);
304-
if (!pluginVO) {
305-
console.error('Plugin not found:', author, pluginName);
306-
return;
307-
}
308-
309300
// Fetch full plugin details to get PluginV4 object
310301
const response = await getCloudServiceClientSync().getPluginDetail(
311302
author,

0 commit comments

Comments
 (0)