Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: fix standalone plugin rerender issue (#9611)

blueskyxi37ab30fc77e3e
diff --git a/src/features/PluginsUI/Render/StandaloneType/index.tsx b/src/features/PluginsUI/Render/StandaloneType/index.tsx
index ede4038e33e..e7e78e42420 100644
--- a/src/features/PluginsUI/Render/StandaloneType/index.tsx
+++ b/src/features/PluginsUI/Render/StandaloneType/index.tsx
@@ -20,7 +20,8 @@ const PluginDefaultType = memo<PluginStandaloneTypeProps>(({ payload, id, name =
const ui = manifest.ui;
if (!ui.url) return;
-
+ // if the id start with "tmp", return directly to avoid duplicate rendering
+ if (id.startsWith('tmp')) return;
return (
<IFrameRender
height={ui.height}