add more comments
This commit is contained in:
parent
7af2e34415
commit
21f553a0d8
@ -158,7 +158,10 @@ function App() {
|
|||||||
params: CodeGenerationParams,
|
params: CodeGenerationParams,
|
||||||
parentVersion: number | null
|
parentVersion: number | null
|
||||||
) {
|
) {
|
||||||
|
// Reset the execution console
|
||||||
setExecutionConsole([]);
|
setExecutionConsole([]);
|
||||||
|
|
||||||
|
// Set the app state
|
||||||
setAppState(AppState.CODING);
|
setAppState(AppState.CODING);
|
||||||
|
|
||||||
// Merge settings with params
|
// Merge settings with params
|
||||||
@ -201,7 +204,7 @@ function App() {
|
|||||||
inputs: {
|
inputs: {
|
||||||
prompt: params.history
|
prompt: params.history
|
||||||
? params.history[params.history.length - 1]
|
? params.history[params.history.length - 1]
|
||||||
: "",
|
: "", // History should never be empty when performing an edit
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user