make execution console show logs from both variants

This commit is contained in:
Abi Raja 2024-07-30 16:23:53 -04:00
parent f52ca306a5
commit 46c480931a

View File

@ -167,17 +167,24 @@ function Sidebar({
</div> </div>
</div> </div>
)} )}
<div className="bg-gray-400 px-4 py-2 rounded text-sm hidden"> <div className="bg-gray-400 px-4 py-2 rounded text-sm">
<h2 className="text-lg mb-4 border-b border-gray-800">Console</h2> <h2 className="text-lg mb-4 border-b border-gray-800">Console</h2>
{executionConsole.map((line, index) => ( {Object.entries(executionConsoles).map(([index, lines]) => (
<div key={index}>
{lines.map((line, lineIndex) => (
<div <div
key={index} key={`${index}-${lineIndex}`}
className="border-b border-gray-400 mb-2 text-gray-600 font-mono" className="border-b border-gray-400 mb-2 text-gray-600 font-mono"
> >
<span className="font-bold mr-2">{`${index}:${
lineIndex + 1
}`}</span>
{line} {line}
</div> </div>
))} ))}
</div> </div>
))}
</div>
</div> </div>
<HistoryDisplay shouldDisableReverts={appState === AppState.CODING} /> <HistoryDisplay shouldDisableReverts={appState === AppState.CODING} />