🙌 OpenHands: AI-Driven Development
Fix terminal output disappears after switching tabs (#604)
Paweł Ciosekb672ac3632c4
diff --git a/frontend/src/components/Workspace.tsx b/frontend/src/components/Workspace.tsxindex cba64e60a8..4c34f02809 100644--- a/frontend/src/components/Workspace.tsx+++ b/frontend/src/components/Workspace.tsx@@ -62,9 +62,15 @@ function Workspace() {))}</Tabs></div>- <div className="h-full w-full p-4 bg-bg-workspace">- {tabData[activeTab].component}- </div>+ {Object.keys(tabData).map((tab) => (+ <div+ className="h-full w-full p-4 bg-bg-workspace"+ key={tab}+ hidden={activeTab !== tab}+ >+ {tabData[tab as TabType].component}+ </div>+ ))}</>);}