From 46c480931a6402bfb9b30e14af7582ed06217b34 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Tue, 30 Jul 2024 16:23:53 -0400 Subject: [PATCH] make execution console show logs from both variants --- frontend/src/components/sidebar/Sidebar.tsx | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/frontend/src/components/sidebar/Sidebar.tsx b/frontend/src/components/sidebar/Sidebar.tsx index b557456..288b3f8 100644 --- a/frontend/src/components/sidebar/Sidebar.tsx +++ b/frontend/src/components/sidebar/Sidebar.tsx @@ -167,14 +167,21 @@ function Sidebar({ )} -
+

Console

- {executionConsole.map((line, index) => ( -
- {line} + {Object.entries(executionConsoles).map(([index, lines]) => ( +
+ {lines.map((line, lineIndex) => ( +
+ {`${index}:${ + lineIndex + 1 + }`} + {line} +
+ ))}
))}