Fix terminal output disappears after switching tabs (#604)

This commit is contained in:
Paweł Ciosek
2024-04-03 02:57:30 +02:00
committed by GitHub
parent 5f29df088a
commit b672ac3632

View File

@@ -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>
))}
</>
);
}