From 21f553a0d829d0ecbdae2f9ae5e8f3216e11af53 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Thu, 25 Jul 2024 15:20:06 -0400 Subject: [PATCH] add more comments --- frontend/src/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 257927e..9c20df3 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -158,7 +158,10 @@ function App() { params: CodeGenerationParams, parentVersion: number | null ) { + // Reset the execution console setExecutionConsole([]); + + // Set the app state setAppState(AppState.CODING); // Merge settings with params @@ -201,7 +204,7 @@ function App() { inputs: { prompt: params.history ? params.history[params.history.length - 1] - : "", + : "", // History should never be empty when performing an edit }, }, ];