mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-22 04:16:07 +00:00
fix: plugins in recommendation cannot be installed
This commit is contained in:
@@ -297,15 +297,6 @@ function MarketPageContent({
|
|||||||
const handleInstallPlugin = useCallback(
|
const handleInstallPlugin = useCallback(
|
||||||
async (author: string, pluginName: string) => {
|
async (author: string, pluginName: string) => {
|
||||||
try {
|
try {
|
||||||
// Find the full plugin object from the list
|
|
||||||
const pluginVO = plugins.find(
|
|
||||||
(p) => p.author === author && p.pluginName === pluginName,
|
|
||||||
);
|
|
||||||
if (!pluginVO) {
|
|
||||||
console.error('Plugin not found:', author, pluginName);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Fetch full plugin details to get PluginV4 object
|
// Fetch full plugin details to get PluginV4 object
|
||||||
const response = await getCloudServiceClientSync().getPluginDetail(
|
const response = await getCloudServiceClientSync().getPluginDetail(
|
||||||
author,
|
author,
|
||||||
|
|||||||
Reference in New Issue
Block a user