mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
Fix terminal output disappears after switching tabs (#604)
This commit is contained in:
@@ -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>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user