diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-12 22:14:46 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-12 22:14:46 -0700 |
commit | b832660d7fa46064326a90439b70603a93c865c8 (patch) | |
tree | 6c9e98730e9c1e8b31a587eb11a56db1091f3d6b /extension/react-app/src | |
parent | 6676ff5ae1141dd37a11cfaa1dc07c8d24dcbf76 (diff) | |
download | sncontinue-b832660d7fa46064326a90439b70603a93c865c8.tar.gz sncontinue-b832660d7fa46064326a90439b70603a93c865c8.tar.bz2 sncontinue-b832660d7fa46064326a90439b70603a93c865c8.zip |
added slash commands, patched
Diffstat (limited to 'extension/react-app/src')
-rw-r--r-- | extension/react-app/src/tabs/gui.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index a3a48410..bf6a9401 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -242,14 +242,14 @@ function GUI(props: GUIProps) { let input = mainTextInputRef.current.value; if ( - history && + history?.timeline.length && history.timeline[history.current_index].step.name === "Waiting for user input" ) { if (input.trim() === "") return; onStepUserInput(input, history!.current_index); } else if ( - history && + history?.timeline.length && history.timeline[history.current_index].step.name === "Waiting for user confirmation" ) { @@ -344,7 +344,7 @@ function GUI(props: GUIProps) { <ComboBox disabled={ - history + history?.timeline.length ? history.timeline[history.current_index].step.name === "Waiting for user confirmation" : false |