File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import LoadModels from "../../utils/loadModels";
88import { Context , CornersDict } from "../../types" ;
99import RecordSidebar from "../record/recordSidebar" ;
1010import UploadSidebar from "../upload/uploadSidebar" ;
11- import { gameResetPgnAndFen } from "../../slices/gameSlice" ;
11+ import { gameResetPgnAndFen , gameResetStart } from "../../slices/gameSlice" ;
1212
1313const VideoAndSidebar = ( { webcam } : { webcam : boolean } ) => {
1414 const context = useOutletContext < Context > ( ) ;
@@ -35,7 +35,8 @@ const VideoAndSidebar = ({ webcam }: {webcam: boolean}) => {
3535
3636 useEffect ( ( ) => {
3737 LoadModels ( context . piecesModelRef , context . xcornersModelRef ) ;
38- dispatch ( cornersReset ( ) )
38+ dispatch ( cornersReset ( ) ) ;
39+ dispatch ( gameResetStart ( ) ) ;
3940 dispatch ( gameResetPgnAndFen ( ) ) ;
4041 } , [ ] ) ;
4142
You can’t perform that action at this time.
0 commit comments