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 | 0a7ca710ae4af16933ef128d13c050b99912e71a (patch) | |
tree | 2a467f6ec14d9961cb91583a92281fc197a5a13b /extension/react-app | |
parent | 297511b5e3ba67e3c37e5cb4c038186093da6a95 (diff) | |
download | sncontinue-0a7ca710ae4af16933ef128d13c050b99912e71a.tar.gz sncontinue-0a7ca710ae4af16933ef128d13c050b99912e71a.tar.bz2 sncontinue-0a7ca710ae4af16933ef128d13c050b99912e71a.zip |
added slash commands, patched
Diffstat (limited to 'extension/react-app')
-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 |