File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -212,15 +212,15 @@ function App() {
212
212
wsRef ,
213
213
updatedParams ,
214
214
// On change
215
- ( token , variant ) => {
216
- appendCommitCode ( commit . hash , variant , token ) ;
215
+ ( token , variantIndex ) => {
216
+ appendCommitCode ( commit . hash , variantIndex , token ) ;
217
217
} ,
218
218
// On set code
219
- ( code , variant ) => {
220
- setCommitCode ( commit . hash , variant , code ) ;
219
+ ( code , variantIndex ) => {
220
+ setCommitCode ( commit . hash , variantIndex , code ) ;
221
221
} ,
222
222
// On status update
223
- ( line , variant ) => appendExecutionConsole ( variant , line ) ,
223
+ ( line , variantIndex ) => appendExecutionConsole ( variantIndex , line ) ,
224
224
// On cancel
225
225
( ) => {
226
226
cancelCodeGenerationAndReset ( commit ) ;
Original file line number Diff line number Diff line change 1
1
import { useProjectStore } from "../../store/project-store" ;
2
2
3
3
function Variants ( ) {
4
- const { head, commits, updateSelectedVariantIndex } = useProjectStore ( ) ;
4
+ const { inputMode, head, commits, updateSelectedVariantIndex } =
5
+ useProjectStore ( ) ;
5
6
6
7
// If there is no head, don't show the variants
7
8
if ( head === null ) {
@@ -13,7 +14,7 @@ function Variants() {
13
14
const selectedVariantIndex = commit . selectedVariantIndex ;
14
15
15
16
// If there is only one variant or the commit is already committed, don't show the variants
16
- if ( variants . length <= 1 || commit . isCommitted ) {
17
+ if ( variants . length <= 1 || commit . isCommitted || inputMode === "video" ) {
17
18
return < div className = "mt-2" > </ div > ;
18
19
}
19
20
You can’t perform that action at this time.
0 commit comments